Skip to main content

Im getting error 415 Unsupported Media Type when sending SMS with sandbox app

APP ID VRbX8zVSRVeOvf0SoKM_1Q

I know my credentials are correct because I can 'GET' the messages I sent using the "try it out"
this is the body of the Json request

{
"to": [{"phoneNumber": "+15555552586"}],
"from": {"phoneNumber": "+15555552434"},
"text": "The ARG is blank"
}

I am using the correct number and extension.
here is the header of the last request

{
Server: nginx
Date: Mon, 17 Jan 2022 02:21:20 GMT
Connection: keep-alive
RCRequestId: 2865d8f2-773c-11ec-84a0-005056bb9f38
RoutingKey: SJC12P01PAS02
X-Rate-Limit-Group: medium
X-Rate-Limit-Limit: 40
X-Rate-Limit-Remaining: 39
X-Rate-Limit-Window: 60
Content-Type: application/json; charset=utf-8
Content-Length: 60
Content-Language: en-US
}

thanks for any and all help

Based on your app analytics, I see you have 2 successful /sms POST calls, and other calls failed with 400, 401 and 513. Can you check and compare what did you change in your code that caused the failure?screen-shot-2022-01-17-at-81728-am.png


as far as I can tell, I never got a successful post. can those success posts be the 'try it out' posts?


Then again, I believe that it's your PowerShell code that could convert the data in wrong format. Can you remove the plus sign from the number and try again.


Reply