Authentication Error Help #322
-
Hi guys, I am attempting to utilize the getorders and create report endpoint and every endpoint I try I get the error: sp_api.auth.exceptions.AuthorizationError: ('invalid_client', 'Clie\site-packages\sp_api\auth\access_token_client.py", line 36, in _requestnt authentication failed', 401) Further up in the exception it says: KeyError: 'access_token_*******************' I saw some other posts mentioning redoing the mws IAM, and I did but I did not come across any glaring errors, any tips? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi, please try to remove the role_arn from the credentials dict. |
Beta Was this translation helpful? Give feedback.
-
I've just tried a couple of combinations. The IAM part seems to be setup fine (not sure, but it seems that's working for you). Try to make sure that the following values are valid and have the correct association with the role/user in AWS: refresh_token All those settings have to be done in SellerCentral |
Beta Was this translation helpful? Give feedback.
I've just tried a couple of combinations. The IAM part seems to be setup fine (not sure, but it seems that's working for you).
Try to make sure that the following values are valid and have the correct association with the role/user in AWS:
refresh_token
lwa_app_id
lwa_client_secret
All those settings have to be done in SellerCentral