Skip to content
This repository was archived by the owner on May 9, 2020. It is now read-only.
This repository was archived by the owner on May 9, 2020. It is now read-only.

Unhandled rejection CloudflareError: 1020 #268

Closed

Description

@MasterProgs
  • What version of Cloudscraper are you using? 4.1.2
    • node -p 'require("cloudscraper/package.json").version'
  • What version of Node.js are you using? (Please share the process information)
    • node -p process v10.16.3
  • When did the problem start occurring? This night.
  • How often does the problem occur? Everytime
  • What is the URL? https://haapi.ankama.com/json/Ankama/v2/Api/CreateApiKey
  • Are there any similar issues? Yeah but doesn't help me.
Code snippet
    var options = {
        uri: 'https://haapi.ankama.com/json/Ankama/v2/Api/CreateApiKey',
        formData: { login: username, password: password, long_life_token: 'false' }
        };
        
        cloudscraper.post(options, function(error, response, body) {
            if (error) {
                console.log("an error has occured");
            } else {
                console.log(body, response);
            }
        });

Thank's.

Activity

  1. MasterProgs commented on Sep 26, 2019

    @MasterProgs
    Author

    I'm not blacklist. I tried from my pc and VPS (same thing), even using proxies.

  2. MasterProgs commented on Sep 26, 2019

    @MasterProgs
    Author
  3. MasterProgs commented on Sep 26, 2019

    @MasterProgs
    Author

    I use ':!ECDHE+SHA:!AES128-SHA:!AESCCM:!DHE:!ARIA' on WINDOWS.

    My bad I have submit my message but the topic was closed (by me) and my message did not send.

  4. MasterProgs commented on Sep 26, 2019

    @MasterProgs
    Author

    @pro-src By the way, when I use this cyphers :!ECDHE+SHA:!AES128-SHA:!AESCCM:!DHE:!ARIA or ECDHE-RSA-AES128-GCM-SHA256 without proxy options it's works.

    But with a proxy configuration (post and get) -> CloudflareError (Error 1020).

    Do you know why I can't use my own proxies ? Yesterday I've not had any issues.

  5. MasterProgs commented on Sep 26, 2019

    @MasterProgs
    Author

    Yeah I tried but still not working :/

  6. MasterProgs commented on Sep 26, 2019

    @MasterProgs
    Author

    And with python we've got the same issues ?

    Thank you for time, I appreciate.

  7. MasterProgs commented on Sep 26, 2019

    @MasterProgs
    Author

    Right,
    Maybe doesn't matter to use proxies hope so that they don't take our IP (auth) and only IP (world).

    I know someone who build a simple script with puppertee (phantomJs). In back his web nav open a web page to bypass that problem. (Not very perf).

  8. MasterProgs commented on Sep 26, 2019

    @MasterProgs
    Author

    @pro-src Damn it, don't working..

    Still with.. Cloudflare #1020

    That's the Header reponse :

    headers: { Host: Symbol(host), Connection: 'keep-alive', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36', 'Upgrade-Insecure-Requests': '1', Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'Accept-Language': 'en-US,en;q=0.9', 'Accept-Encoding': 'gzip, deflate, br' }, cloudflareMaxTimeout: 30000, followAllRedirects: true, challengesToSolve: 3, decodeEmails: false, gzip: true, agentOptions: { ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA:!ECDHE+SHA:!AES128-SHA:@SECLEVEL=5:@STRENGTH', sigalgs: 'ECDSA+SHA256' }, uri: 'https://haapi.ankama.com/json/Ankama/v2/Api/CreateApiKey', proxy: 'http://user:pass@IP:PORT', qs: 'login=x&password=x&long_life_token=false', formData: { login: 'x', password: 'x' }, pool: undefined, method: 'POST', realEncoding: 'utf8', encoding: null, callback: [Function] },

    Thank you for ur time dude ;)

    Btw : I update Node to 12.11.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions