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

Captcha solver does not seem to do anything at all? code: 500 #16

Closed
epicwhale opened this issue Jul 27, 2024 · 2 comments
Closed

Captcha solver does not seem to do anything at all? code: 500 #16

epicwhale opened this issue Jul 27, 2024 · 2 comments

Comments

@epicwhale
Copy link

I am trying to use it in mode=captcha with a simple target page https://peet.ws/turnstile-test/managed.html but I keep getting a code: 500, Request Time out. I can see Chrome opening up in headful mode, but does nothing further. I am using my home residential ip address, and have no trouble solving the captcha if I click on it, but the script itself doesn't seem to try to attempt to solve the captcha.

What am I missing? What's the right way to use this project to get a token for a turnstile captcha on a page? (in both headful and headless mode)

fetch('http://localhost:3000/cf-clearance-scraper', {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        url: 'https://peet.ws/turnstile-test/managed.html', // Link to engrave
        mode:"captcha", // gets waf or captcha values
    })
}).then(res => res.json()).then(console.log).catch(console.error)

Output:

{ code: 500, message: 'Request Timeout' }
image
@Notum
Copy link

Notum commented Aug 4, 2024

I confirm the same.
No matter what link other than "https://nopecha.com/demo/cloudflare" is used - script return 500 error.

@zfcsoftware
Copy link
Owner

The library has been updated. It should now run smoothly. I am closing this issue, please let me know if you have any problems by writing a message through this issue. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants