JimmyLaurent / cloudflare-scraper

A package to bypass Cloudflare's protection
MIT License
286 stars 30 forks source link

Cannot read property 'reduce' of undefined #14

Open ElijahDD opened 4 years ago

ElijahDD commented 4 years ago
TypeError: Cannot read property 'reduce' of undefined
    at tryToSolve (/root/dev/node_modules/hcaptcha-solver/index.js:79:25)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async solveCaptcha (/root/dev/node_modules/hcaptcha-solver/index.js:112:22)
    at async handleCaptcha (/root/dev/node_modules/cloudflare-scraper/src/handleCaptcha.js:48:7)
    at async fillCookiesJar (/root/dev/node_modules/cloudflare-scraper/src/fillCookiesJar.js:39:7)
    at async handleError (/root/dev/node_modules/cloudflare-scraper/index.js:18:5)
    at async cloudflareScraper (/root/dev/node_modules/cloudflare-scraper/index.js:37:20)
    at async /root/dev/1.js:5:22
const cloudflareScraper = require('cloudflare-scraper');
(async () => {
  try {
    const response = await cloudflareScraper.get(url, {
    });
    console.log(response);
  } catch (error) {
    console.log(error);
  }
})();
ElijahDD commented 4 years ago

And sometimes

Error: could't find the site key
    at extract (/root/dev/node_modules/cloudflare-scraper/src/utils.js:25:11)
    at handleCaptcha (/root/dev/node_modules/cloudflare-scraper/src/handleCaptcha.js:39:19)
    at fillCookiesJar (/root/dev/node_modules/cloudflare-scraper/src/fillCookiesJar.js:52:15)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async handleError (/root/dev/node_modules/cloudflare-scraper/index.js:18:5)
    at async cloudflareScraper (/root/dev/node_modules/cloudflare-scraper/index.js:37:20)
    at async main (/root/dev/1.js:9:26)
KumpelStachu commented 3 years ago

I fixed Error: could't find the site key by changing value of:

andress134 commented 3 years ago

I fixed Error: could't find the site key by changing value of:

Cloudflare has updated again the new challenge