zfcsoftware / cf-clearance-scraper

This package provides an api that returns cookies (cf-clearance) that you can request on a website protected by Cloudflare WAF (corporate or normal) without being blocked by WAF.
MIT License
210 stars 32 forks source link

Requests timing out #28

Open Crease29 opened 3 days ago

Crease29 commented 3 days ago

Hello,

what can I do when requests are timing out since yesterday? Has there been made a change to Cloudflare?

mokhunv-paloalto commented 3 days ago

Second this, tried to run the library yesterday and got request timed out

mokhunv-paloalto commented 2 days ago

To be precise, I just found this library 2 days ago and tried to get it working - before that I was using puppeteer-real-browser to bypass cloudflare turnstile, but I want to use plain puppeteer and have my docker container running if I need to get a turnstile token. Puppeteer real browser works fine still, but I'm migrating to this library and wanted to ask whether I have setup something wrong (because I've never used it) or do other people also experience this issue?

I run it on Mac M1 in docker with this command: docker run --platform linux/amd64 -d -p 3000:3000 --name cf-clearance -e PORT=3000 -e timeOut=60000 zfcsoftware/cf-clearance-scraper:latest

and I do a request like this:

const response = await fetch("http://localhost:3000/cf-clearance-scraper", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "", // my url
    mode: "captcha",
  }),
});

const data = await response.json();

console.log("data", data); // it's always {code: 500, message: 'Request Timeout'}