cloudscraper icon indicating copy to clipboard operation
cloudscraper copied to clipboard

CloudflareError: Cloudflare challenge loop error in latest version

Open chrismichaelps opened this issue 5 years ago • 3 comments

Please attempt to answer the following questions before submitting a new issue:

  • What version of Cloudscraper are you using?
    • v4.6.0
  • What version of Node.js are you using? (Please share the process information)
 process {
  version: 'v12.13.1',
  versions: {
    node: '12.13.1',
    v8: '7.7.299.13-node.16',
    uv: '1.33.1',
    zlib: '1.2.11',
    brotli: '1.0.7',
    ares: '1.15.0',
    modules: '72',
    nghttp2: '1.39.2',
    napi: '5',
    llhttp: '1.1.4',
    http_parser: '2.8.0',
    openssl: '1.1.1d',
    cldr: '35.1',
    icu: '64.2',
    tz: '2019c',
    unicode: '12.1'
  },
  arch: 'x64',
  platform: 'win32',
  release: {
    name: 'node',
    lts: 'Erbium',
    sourceUrl: 'https://nodejs.org/download/release/v12.13.1/node-v12.13.1.tar.gz',
    headersUrl: 'https://nodejs.org/download/release/v12.13.1/node-v12.13.1-headers.tar.gz',
    libUrl: 'https://nodejs.org/download/release/v12.13.1/win-x64/node.lib'
  },
}
  • When did the problem start occurring?

    • The problem started to come up again after updating the cloudscraper lib to v.4.6.0
  • How often does the problem occur?

    • The error is always shown once I performed a test with travis.
  • What is the URL?

    • https://animeflv.net/
  • Are there any similar issues? (Please share the links)

    • Problem similar to #323

Error

CloudflareError: Cloudflare challenge loop
    at onChallenge (/home/travis/build/ChrisMichaelPerezSantiago/animeflv/node_modules/cloudscraper/index.js:298:13)
    at onCloudflareResponse (/home/travis/build/ChrisMichaelPerezSantiago/animeflv/node_modules/cloudscraper/index.js:235:12)
    at onRequestResponse (/home/travis/build/ChrisMichaelPerezSantiago/animeflv/node_modules/cloudscraper/index.js:205:5)
    at Request.<anonymous> (/home/travis/build/ChrisMichaelPerezSantiago/animeflv/node_modules/cloudscraper/index.js:149:7)
    at Object.onceWrapper (events.js:428:26)
    at Request.emit (events.js:321:20)
    at Request.<anonymous> (/home/travis/build/ChrisMichaelPerezSantiago/animeflv/node_modules/request/request.js:1154:10)
    at Request.emit (events.js:321:20)
    at IncomingMessage.<anonymous> (/home/travis/build/ChrisMichaelPerezSantiago/animeflv/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (events.js:427:28)
    at IncomingMessage.emit (events.js:333:22)
    at endReadableNT (_stream_readable.js:1201:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  name: 'CloudflareError',
  message: 'Cloudflare challenge loop',
  errorType: 4
}

chrismichaelps avatar Feb 14 '20 13:02 chrismichaelps

I also made an API for AnimeFLV with GraphQL and the same is happening

JuanM04 avatar Feb 14 '20 17:02 JuanM04

Also having a similar issue with https://stress95.com/ A captcha challenge is automatically returned when using cloudscraper but not manually. Not sure if it is for the same reason or not.

Bassintag avatar Feb 20 '20 12:02 Bassintag

I have a similar issue on https://www.slamjam.com/ when trying to send POST requests. Sometimes it succeed after many retries and having rotate proxies

GwenBFX avatar Feb 21 '20 19:02 GwenBFX