amazon-price

FREEMIUM
By Dhananjoy Biswas | Updated 4 months ago | eCommerce
Popularity

8.7 / 10

Latency

3,052ms

Service Level

100%

Back to All Discussions

Parse Error - Bulk Data API

avatar
adivity
2 years ago

req.query({
“asins”: “B07GL45JHQ”,
“marketplace”: “US”
});

Bulk Data API is returning an error:

{1 item
"error":“Parse Error”
}

avatar
ebappa1971 commented 2 years ago

It’s fixed now! If you’re still facing this, just unsubscribe and then resubscribe again.

(Details: there was a problem with header names in RapidAPI platform, I’ve updated the header names but old account still might use problematic header names. Resubscribing will solve this problem)

avatar
adivity commented 2 years ago

I tried on my computer, can’t seem to get it to work.

I’m trying with Axios SDK on Node 10

{
message: "Parse Error",
name: "Error",
stack: "Error: Parse Error at TLSSocket.socketOnData (_http_client.js:442:20) at TLSSocket.emit (events.js:189:13) at addChunk (_stream_readable.js:284:12) at readableAddChunk (_stream_readable.js:265:11) at TLSSocket.Readable.push (_stream_readable.js:220:10) at TLSWrap.onStreamRead (internal/stream_base_commons.js:94:17)",
config: {
url: "https://amazon-price.p.rapidapi.com/azapi-bulkPrice",
method: "get",
params: {
asins: "B07FY1VJ99",
marketplace: "US"
},
headers: {
Accept: "application/json, text/plain, */*",
x-rapidapi-host: "amazon-price.p.rapidapi.com",
x-rapidapi-key: "my_key_goes_here",
useQueryString: true,
Content-Type: "application/octet-stream",
User-Agent: "axios/0.19.2"
},
transformRequest: [
null
],
transformResponse: [
null
],
timeout: 0,
xsrfCookieName: "XSRF-TOKEN",
xsrfHeaderName: "X-XSRF-TOKEN",
maxContentLength: -1
},
code: "HPE_INVALID_HEADER_TOKEN"
}
avatar
ebappa1971 commented 2 years ago

Please check this discussion - https://rapidapi.com/ebappa1971/api/amazon-price/discussions/13900/API-keep-returning-Parse-Error
It just happens in the RapidAPI website. If you use some sdk or programatically call the API it should work fine.

Join in the discussion - add comment below:

Login / Signup to post new comments
Rating: 5 - Votes: 1