evident-indigo•4mo ago
HTTP Request error
I am getting this error in make when I use http request to invoke my vapi assistant to make batch calls, and can't seem to resolve it. I hope someone can help. Essentially, I am trying for vapi to make outbound calls but I want the vapi assistant greet the person by their name. So it pulls the name and number from a google sheet.
DataError
Error: 400 Bad Request
{"message":"Expected double-quoted property name in JSON at position 87 (line 7 column 1)","error":"Bad Request","statusCode":400}
Origin
HTTP
When I check the request content to see where the error is the code looks good
{
"customers":
{
"number": "+18682681055",
"name": "Jerome", } "phoneNumberId": "xxxxxxx-xxxxxx-xxxxxxx-xxxxxxxxxx", "assistant": "{"0":"Jerome","4":"","7":"+18682681055","id":"55469a2b-cf27-4ad1-8579-41387f6d3f23","name":"Debt Recovery (Outbound)","model":{"model":"gpt-4o-mini","messages": I hope someone can help.
"name": "Jerome", } "phoneNumberId": "xxxxxxx-xxxxxx-xxxxxxx-xxxxxxxxxx", "assistant": "{"0":"Jerome","4":"","7":"+18682681055","id":"55469a2b-cf27-4ad1-8579-41387f6d3f23","name":"Debt Recovery (Outbound)","model":{"model":"gpt-4o-mini","messages": I hope someone can help.
4 Replies
flat-fuchsia•4mo ago
The error is caused by invalid JSON specifically a trailing comma after "name": "Jerome", a missing comma between objects, and unescaped quotes in the assistant field, correcting these issues will resolve the 400 Bad Request..
Hey Jerome, checking if this is resolved/solved for you?
evident-indigoOP•3mo ago
The error was not resolved but I was able to bypass this to get the result I wanted. This can be closed.
[ma