question

newuser-fadb40d4-aff5-4155-a8d5-16a9527b0ca4 avatar image
newuser-fadb40d4-aff5-4155-a8d5-16a9527b0ca4 asked ·

Error 500 on request access token

Hello I am receiving error 500 when attempting to get access token after getting the code.

curl 'https://api.amazon.com/auth/o2/token?grant_type=authorization_code&client_id=CLID&redirect_uri=http://localhost:8000/api/amazon_auth/login/%3Frole%3DC%26type%3DC&client_secret=SECRET&code=ANJjLkDtpwCZYbXxpvVv' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Content-type: application/x-www-form-urlencoded' -H


Even if I do this dummy request i get error 500 but I do get the code.

The initial request URL I use is

https://www.amazon.com/ap/oa?client_id=CLIENTID&redirect_uri=http://localhost:8000/api/amazon_auth/login/%3Frole%3DC%26type%3DC&response_type=code&scope=profile

api
10 |2000 characters needed characters left characters exceeded

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

0 Answers