Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting No MWS Authorization exists when requesting authorization code via MWS token #25

Open
noorani786 opened this issue Apr 19, 2022 · 2 comments

Comments

@noorani786
Copy link

Hello,

I am getting the below error when calling the get_authorization_code method in the AuthorizationApi

AmzSpApi::ApiError (Error message: the server returns an error
HTTP status code: 400
Response headers: {"Date"=>"Tue, 19 Apr 2022 16:46:45 GMT", "Content-Type"=>"application/json", "Content-Length"=>"131", "Connection"=>"keep-alive", "x-amzn-RequestId"=>"6becf978-e4d0-4d75-b071-2033fc37da06", "x-amzn-RateLimit-Limit"=>"1.0", "x-amz-apigw-id"=>"Q1kaZGzhIAMFgKw=", "X-Amzn-Trace-Id"=>"Root=1-625ee775-4588056d54a5467f1ddac399"}
Response body: {
  "errors": [
    {
      "code": "InvalidInput",
      "message": "No MWS Authorization exists",
      "details": ""
    }
  ]
})

The MWS Token is valid since I am able to use it to successfully make calls via the MWS Api on behalf of the seller.

Stuck on this issue for a few days now so any help you can provide will be really appreciated!

@philsmy
Copy link

philsmy commented Aug 7, 2022

Did you get this resolved?

@ericcj
Copy link
Owner

ericcj commented Oct 7, 2022

grantless operations aren't currently supported in this gem but i'd love to see someone contribute a fix for them. there's a gist in this thread that's a starting point #3 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants