Git Product home page Git Product logo

Comments (6)

hakanensari avatar hakanensari commented on July 29, 2024

It sounds like you didn't set the marketplace_id on the client or you set it to something not in here?

from peddler.

viperouge avatar viperouge commented on July 29, 2024

I did.. my marketplace id is:

marketplace_id: "ATVPDKIKX0DER"

from peddler.

viperouge avatar viperouge commented on July 29, 2024

in which files should I place:

require 'peddler'

client = MWS.orders
parser = client.get_service_status
parser.parse

and

client = MWS.orders(
marketplace_id: "...",
merchant_id: "...",
aws_access_key_id: "...",
aws_secret_access_key: "..."
)

? maybe I'm doing something wrong

from peddler.

hakanensari avatar hakanensari commented on July 29, 2024

I added a descriptive message to the Marketplace::BadId error. Could you point your Gemfile to the GitHub repo and see what the error message says?

from peddler.

viperouge avatar viperouge commented on July 29, 2024

missing MarketplaceId (Peddler::Marketplace::BadId). Currently the ID is in a file called peddler.rb in config/initializers. Maybe I'm just doing something wrong?

from peddler.

hakanensari avatar hakanensari commented on July 29, 2024

Looks like it. You need to set the credentials each time you instantiate a client. There's no singleton configuration object that stores credentials across instances.

If you are using a single set of credentials, I recommend you set them through environment variables, as I explain in the README.

I'll keep this issue open until I get a chance to reword the README to make this more explicit.

from peddler.

Related Issues (20)

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.