evident-indigo
evident-indigo4mo 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.
4 Replies
flat-fuchsia
flat-fuchsia4mo 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..
Sahil
Sahil4mo ago
Hey Jerome, checking if this is resolved/solved for you?
evident-indigo
evident-indigoOP3mo ago
The error was not resolved but I was able to bypass this to get the result I wanted. This can be closed.
Sahil
Sahil3mo ago
[ma

Did you find this page helpful?