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
@MasterProgs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions