cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1645
Views
2
Helpful
2
Replies

Webex API Post status code 400

Mikey Boy
Level 1
Level 1

Hi, I am trying to use the API from within Node-red currently. However, I am unable to get a successful connection and I am always receiving status code 400:

"{"message":"The request could not be understood by the server due to malformed syntax.","errors":[{"description":"The request could not be understood by the server due to malformed syntax."}],"trackingId":"ROUTER_64C22C53-E762-01BB-0127-0AFDD9310127"}"

I have tested the connection within Talend and I can successfully authenticate and get a status 200 response. 

The only difference I can see in the headers for the successful request is that content-encoding is gzip. But the requests from node red are going as chunked?

 

Regards

1 Accepted Solution

Thanks, I actually managed to solve it, I had to insert the room ID within a the main payload, I was trying to insert it as part of an object field.

View solution in original post

2 Replies 2

Janos Benyovszki
Cisco Employee
Cisco Employee

@Mikey Boy not sure what request you are exactly making, but the body syntax might trigger that error too. I would recommend doing some testing first in Postman https://www.postman.com/ and if that works, you can use the code generation function https://learning.postman.com/docs/sending-requests/generate-code-snippets/ there to have a base script that you can implement in your code.

Thanks, I actually managed to solve it, I had to insert the room ID within a the main payload, I was trying to insert it as part of an object field.