question

efimovandr avatar image
efimovandr asked

Non JSON response

Hi, I have trouble with sending messages. Service returns HTTP 200 but in the response body there is something starting from "<" instead of JSON-serialized object. Any ideas why it may happen? Unfortunately right now I cannot provide request Id, payload we sent or even full response content we received because all I have is JSON deserialization errors in our production server's log. Thanks, Andrey.
amazon device messaging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

tkoba@amazon avatar image
tkoba@amazon answered
Hi Andrey, Could you explain more how you are requesting to send message through ADM? Do you have the correct request format as stated on the below page? https://developer.amazon.com/appsandservices/apis/engage/device-messaging/tech-docs/06-sending-a-message#Request%20Format If you are getting HTTP 200 response, can you confirm that the message you sent is being delivered to the receiver?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.