Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 403 Forbidden error when trying to get information from Goat #32

Open
aryan-chakrabarti opened this issue Mar 23, 2022 · 1 comment

Comments

@aryan-chakrabarti
Copy link

Hi,

I tried to run this API on AWS Lambda and Google Firebase both, but when I am running it I get the following error. I end up not being able to retrieve any information from Goat even though I know that the information is there. However, StockX still works:

Error: Could not connect to Goat while grabbing pictures for 'GY3438' Error:
at Object.getPictures (/var/task/node_modules/sneaks-api/scrapers/goat-scraper.js:105:19)
at processTicksAndRejections (internal/process/task_queues.js:95:5)

HTTPError: Response code 403 (Forbidden)
at Request. (/var/task/node_modules/got/dist/source/as-promise/index.js:117:42)
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
code: 'ERR_NON_2XX_3XX_RESPONSE',
timings: {
start: 1648073321821,
socket: 1648073321822,
lookup: 1648073321862,
connect: 1648073321863,
secureConnect: undefined,
upload: 1648073321863,
response: 1648073321922,
end: 1648073321922,
error: undefined,
abort: undefined,
phases: {
wait: 1,
dns: 40,
tcp: 1,
tls: undefined,
request: 0,
firstByte: 59,
download: 0,
total: 101
}
}
}

@jomtek
Copy link

jomtek commented Apr 24, 2022

They have strenghtened their Cloudflare security, one workaround would be to use a library such as cloudscraper as well as private residential proxies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants