
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 01:39 AM
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
Solved! Go to Solution.
- Labels:
-
Webex API
-
Webex Bots
-
Webex Developer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 08:00 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 04:30 AM
@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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 08:00 AM
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.
