Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bypass Failed (CloudFlare Captcha) #2

Open
para-dise opened this issue Feb 24, 2023 · 2 comments
Open

Bypass Failed (CloudFlare Captcha) #2

para-dise opened this issue Feb 24, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@para-dise
Copy link

Hi,

It seems that with the latest version of Puppeteer-Bypass CloudFlare is not successfully being bypassed.

Here is the code I used

const API = require("./node_modules/Puppeteer-Bypass/built/API").default;
const bypass = new API();

(
    async () => {
        const result = await bypass.request("https://www.spigotmc.org/resources/", { method: "GET",
            headers: {
                Referer: "https://www.spigotmc.org/resources/1",
                "User-Agent": "randomuseragent", // PLEASE NOTE THAT THIS WILL GET OVERWRITTEN
                Cookie: "value1=lol;value2=something", // THIS ALSO WILL GET OVERWRITTEN
                "X-Requested-With": "XMLHttpRequest",
                "Content-Type": "applicatipn/json",
                Accept: "application/json"
            }
        });

        console.log(result);
    }
)();

The result is CloudFlare prompting either "Verify Now" or a CF Captcha, resulting in

Puppeteer-Bypass\built\API.js:176
                throw new Error('stuck');
                      ^

Error: stuck
@para-dise
Copy link
Author

As a side note, the test also fails for the same reason.

@Eltik Eltik changed the title Bypass Failed Bypass Failed (CloudFlare Captcha) Feb 25, 2023
@Eltik
Copy link
Owner

Eltik commented Feb 25, 2023

Thanks for the bug report! Unfortunately captchas can't be bypassed at the moment (I forgot to update the README). However, if you complete the captcha yourself it shouldn't appear again. I'll need to do some testing.

@Eltik Eltik added the bug Something isn't working label Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants