GithubHelp home page GithubHelp logo

Comments (4)

tusbar avatar tusbar commented on July 18, 2024

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.

kheniparth avatar kheniparth commented on July 18, 2024

@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.

tusbar avatar tusbar commented on July 18, 2024

@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.

kheniparth avatar kheniparth commented on July 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.