Comments (4)
Hey @kheniparth, thanks for reporting this. I’ve released a new version of the packages that should fix this issue, can you please confirm?
from selling-partner-api-sdk.
@tusbar Thank you for the quick fix. I can confirm that the fix works and I am not getting that error anymore.
But I have started getting InvalidClientTokenId
for some reason. This only happens while making the request from netlify.com
domain, the same code and tokens work from the localhost
.
{
"name": "InvalidClientTokenId",
"$fault": "client",
"$metadata": {
"httpStatusCode": 403,
"requestId": "f396536c-d92a-49de-8d88-d124526edcba",
"attempts": 1,
"totalRetryDelay": 0
},
"Type": "Sender",
"Code": "InvalidClientTokenId",
"message": "The security token included in the request is invalid"
}
Shall I create a separate issue for this?
from selling-partner-api-sdk.
@kheniparth good to hear that the issue is fixed.
Regarding your new issue, this is probably related to AWS environment variables defined in your netlify environment that get picked up by @sp-api-sdk/auth that are probably not what you expect?
from selling-partner-api-sdk.
@tusbar I have tried hardcoding the AWS credentials instead of accessing them from environment variables as you mentioned but that didn't help.
Also, I debugged the release's env. variable by printing them to make sure everything is correct. But weren't able to make successful API calls.
I am baffled why something like this is possible, where the same code and credentials work from localhost but fail from Netlify's subdomain. 😢
Thank you for all the help 👍
from selling-partner-api-sdk.
Related Issues (12)
- Types have separate declarations of a private property 'clientId'. HOT 2
- Region is missing HOT 4
- Getting error code 429: "QuotaExceeded" HOT 2
- address error for amazon STS while trying to use financesAPI HOT 1
- Error using "na" region. HOT 4
- Feature request: Export the Api classses
- npm install not working HOT 1
- Requesting vendorDetails in getCatalogItem results in 400 response error HOT 1
- [Bug] omit sessionToken if undefined HOT 10
- Issue with Auth Types on Catalog APIs HOT 4
- [feature request] regenerate notifications schemas HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selling-partner-api-sdk.