Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

144
Views
Object Error as a response from Amazon Product API (Node-JS/Javascript)

I'm working on an API Call using the npm wrapper amazon-paapi. I'm using Codepen.io, but whatever I do it gives back a bad response. This is the error I get on the console:

// [object Error]
{ 
"crossDomain": true,
"method": "POST",
"url": "https://webservices.amazon.it/paapi5/getitems"
}

The code I'm using is the following:

import amazonPaapi from "https://cdn.skypack.dev/amazon-paapi@1.0.6";

$("#bttn").on("click", function () {

  const commonParameters = {
    AccessKey: "AKXXXXXXXXX", //my PAAPI access key
    SecretKey: "wiYYYYYYYYYYYYY", //my PAAPI secret key
    PartnerTag: "zzz-21", //my tag
    PartnerType: "Associates",
    Marketplace: "www.amazon.it"
  };

  const requestParameters = {
    ItemIds: ["B09P8LPYFT", "B01N06ZPKI"],
    Resources: [
      "Images.Primary.Large",
      "ItemInfo.Title",
      "Offers.Listings.Price"
    ]
  };

  amazonPaapi
    .GetItems(commonParameters, requestParameters)
    .then((data) => {
      // do something with the success response.
      console.log(data);
      console.log("Success");
    })
    .catch((error) => {
      // catch an error.
      console.log(error);
      console.log("Failure");
    });
});

How can I solve this issue? Thank you in advance.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!