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