400 Bad Request - Http issue?

Original Discord Post by ebopnostop | 2024-04-01 20:51:33

curl --location --request POST
–header ‘“CONVAI-API-KEY: a88111a939dcf2bbf1a7304b60ed54f4”’
–form ‘userText=“I have a Influenza and need to see the doctor.”’
–form ‘charID=“5af094fe-eaeb-11ee-9074-42010a7be00e”’
–form ‘sessionID=“-1”’
–form ‘voiceResponse=“False”’
curl: (92) HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1)

Reply by ebopnostop | 2024-04-02 13:56:06

Removing the double quotes from the convai header yielded this error now: “{“ERROR”: “classLabels : Field required”}%”

I added a new field in the form ‘classLabels=null’ and it works. Lame fix, not sure why it’s needed. It’s not documented.

Reply by k3kalinix | 2024-04-04 21:37:06

Hey <@178913485747388418>

Reply by k3kalinix | 2024-04-04 21:37:40

There was an issue and we fixed it. Please let us know if you are able to use the API.