Alok_Tibrewal | 2018-03-21 13:35:54 UTC | #1
Hello
I am getting "The request could not be understood by the server due to malformed syntax." everytime I am calling the api. Other apis are working fine but only issue is coming with this api.
API : POST /api/v2/notifications/channels/{channelId}/subscriptions
{ "status": 400, "code": "bad.request", "message": "The request could not be understood by the server due to malformed syntax.", "contextId": "02367cee-f228-418e-acfd-20e945a8d45d", "details": [], "errors": [] }
Can you please tell me what is happening.
I am adding the subscription via channel in the widget. I am able to fetch channel information. But I am not able to subscribe it. I am using Code Authorization in the widget. And want to subscribe for logged user conversation.
Thanks Alok
Jason_Mathison | 2018-03-21 13:57:46 UTC | #2
The logs indicate that the message body is not valid JSON. What is the value of ${topic}?
Alok_Tibrewal | 2018-03-21 14:51:05 UTC | #3
v2.users.6995445d-9920-4725-87df-57b6215c155d.conversations.calls
This will be the body of topic.
Regards
Alok_Tibrewal | 2018-03-22 05:38:45 UTC | #4
Issue is solved. I missed the quotation of the variable.
"${topic}"
Regards Alok
system | 2018-04-22 05:42:52 UTC | #5
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 2650