Error: Request failed with status code 503

Hi there,

I am trying to scrape product information from amazon.com via a plugin I wrote using axios and cheerio. The code works without a glitch for amazon.in, but throws the error below while attempting to scrape amazon.com / amazon.ca.

Looking at Error: Request failed with status code 503, looks like the server couldn’t communicate with the URL. Is it correct? Interestingly, the same code works outside bubble.

Could somebody help me understand the error please?

Plugin action scrape and add error: 
Error: Request failed with status code 503
    at createError (/var/task/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/var/task/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/var/task/node_modules/axios/lib/adapters/http.js:293:11)
    at IncomingMessage.emit (events.js:326:22)
    at endReadableNT (_stream_readable.js:1241:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

Error: Outer Error (see above for inner error)
    at Block.wait (/var/task/u.js:420:34)
    at Object.async_fn [as async] (/var/task/index.js:316:35)
    at eval (eval at build_function (/var/task/index.js:86:21), :15:29)
    at /var/task/index.js:349:23
    at run_fn (/var/task/u.js:594:18)

Thank you for your help.

2 Likes

Interestingly it works for amazon.co.uk as well.

Any clues on how to troubleshoot this and resolve the error above?

1 Like

Need to look into plugin code. which plugin you are using?

2 Likes

Thank you for the response Ankur. It’s a custom plugin I wrote. Is there a way we could catch up and troubleshoot if you have time now?

Sure, DM me . Lets get on Zoom Call if that is okay with you.

2 Likes

DM’d you. Let’s hop on a call.

Ankur you’re the man! :fist:

2 Likes

This topic was automatically closed after 69 days. New replies are no longer allowed.