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

CustomError: Access to requested resource is denied. #10

Closed
Tanveer-LowCoder opened this issue Dec 26, 2020 · 1 comment
Closed

CustomError: Access to requested resource is denied. #10

Tanveer-LowCoder opened this issue Dec 26, 2020 · 1 comment

Comments

@Tanveer-LowCoder
Copy link

I get the following error when calling the getOrders operation:

2020-12-26T17:03:52.835Z 5531d3c3-8473-4da8-a4b2-034f137044c5 INFO CustomError: Access to requested resource is denied.
at SellingPartner.callAPI (/var/task/node_modules/amazon-sp-api/lib/SellingPartner.js:229:13)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Runtime.exports.handler (/var/task/index.js:22:15) {
code: 'Unauthorized',
details: '',
type: 'error'
}

When running the same code for my own store: I get null object back for getOrders - meaning its all working end to end.

When I try to get the getOrder for a clients store, where we got the spapi_auth correctly, and generated the refresh_token successfully, we hit the error. Unfortunately I only have one clients store to try it out.

BTW, what is also interesting is that, I did get the result early in the morning with my clients store. I did not change anything, and hence I am a little lost as to what could be throwing this error.

@Tanveer-LowCoder
Copy link
Author

Not sure what, but this was fixed automatically for some of the API endpoints.

For some, it still exists (Eg: getReport). I'm closing this for the time being.

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

1 participant