Amazon-SP-API-CSharp icon indicating copy to clipboard operation
Amazon-SP-API-CSharp copied to clipboard

Unsuccessful LWA token exchange

Open rnsdevelopment opened this issue 1 year ago • 1 comments

Good afternoon,

I have recently upgraded from version 1.6.11 to the latest version 1.7.28. I had been using 1.6.11 for sometime but now need to plan for amazon switching to inbound fulfillment 20240320. My IAM credentials have been working without issue (obviously it was a nightmare to get them working first of all). However after upgrading I am now getting the following exceptions:

"Unsuccessful LWA token exchange" & "Request failed with status code Unauthorized".

My AmazonConnection code doesn't seem any different than the examples shown and obviously my AccessKey, SecretKey, RoleArn, ClientId, ClientSecret, RefreshToken are valid otherwise the existing system would stop working.

Also, I'm in the UK just incase that makes a difference.

I'm not sure if this is the right place to be asking for help...I'm really don't know where else to do with these generic errors.

Thank you, Stuart

rnsdevelopment avatar Oct 09 '24 15:10 rnsdevelopment

This issue has now been resolved. My credentials were encrypted and I wasn't decrypting them correctly.

rnsdevelopment avatar Oct 11 '24 10:10 rnsdevelopment