question

wwuUEI avatar image
wwuUEI asked

500 Internal Server Error when posting api.amazon.com/auth/o2/token

Hi,

I am using Postman to try to get AccessToken/Refresh token from https://api.amazon.com/auth/o2/token. However, I am getting a cryptic 500 Internal Server Error.

I followed the guide on https://developer.amazon.com/docs/login-with-amazon/authorization-code-grant.html#Access%20Token%20Request.


If needed, I can provide my Amazon Client_ID/Client_Secret to Amazon Support.


Thank you.


apiamazon web services
10 |5000

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

Phil McGee avatar image
Phil McGee answered

Check that your tokens are properly URL encoded and do not contain any unsafe characters. I had this 500 error before due to an unescaped '|' symbol.

10 |5000

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

newuser-5ffd3461-6f29-4f15-8517-ffb5cbcbe20d avatar image
newuser-5ffd3461-6f29-4f15-8517-ffb5cbcbe20d answered

I have the same problem, my tokens do not contain any other characters than numbers, letters "-" and ".". Could anyone help here?

3 comments
10 |5000

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

Hello and thank you for your message.

Please create a case via our Contact Us page so we can assist you further. Make sure to share as many details as possible se we can assist you.

Regards,
Barry

0 Likes 0 ·

Were you able to resolve that issue?

0 Likes 0 ·

As this is a slightly older thread, I would suggest posting a new thread with more information specific to your query.

0 Likes 0 ·