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

Error: could't find the site key #28

Open
juliodlcz3 opened this issue May 10, 2021 · 4 comments
Open

Error: could't find the site key #28

juliodlcz3 opened this issue May 10, 2021 · 4 comments

Comments

@juliodlcz3
Copy link

Hi, I have been using cloudflare-scraper for around three-four months, with a forked repository to change the linux agent user, but the last week has started to failing with the next error:

2021-05-10T17:44:49.403793+00:00 app[worker.1]: Error: could't find the site key
2021-05-10T17:44:49.403805+00:00 app[worker.1]: at extract (/app/node_modules/cloudflare-scraper/src/utils.js:25:11)
2021-05-10T17:44:49.403806+00:00 app[worker.1]: at handleCaptcha (/app/node_modules/cloudflare-scraper/src/handleCaptcha.js:39:19)
2021-05-10T17:44:49.403806+00:00 app[worker.1]: at fillCookiesJar (/app/node_modules/cloudflare-scraper/src/fillCookiesJar.js:52:15)

As you can see I am using It through heroku service, and eventually works fine since my computer but no through heroku, even after restart the application.

It would be the problem that cloudflare ban de ip's from heroku servers?, there is some moments than It works from my computer and anothers times that not.

I really appreciate your response.

@GhyslainBruno
Copy link

It started happening to me since this morning, I don't have many info about it for the moment, but I think this needs attention of @JimmyLaurent, as maybe Cloudflare has found a way to block the scraper used by this library :-/

@GhyslainBruno
Copy link

GhyslainBruno commented May 31, 2021

I just found this PR and I thought this would fix this issue, but apparently it doesn't :-(

At least, it gives some info about how to fix it ! Thanks to @KumpelStachu

@RamBoFe
Copy link

RamBoFe commented Jun 8, 2021

Same problem for about 2 weeks. From my development computer as well as my hosting server, it no longer works.

@MDaniel592
Copy link

MDaniel592 commented Jun 9, 2021

You have to change the line 5 from handleCaptcha.js from:

const SITE_KEY_REGEXP = /sitekey="([^"]+)/;

to:

const SITE_KEY_REGEXP = /vc" value="([^"]+)/;

No error because the key has been found.

PD: I have no idea if more changes have to be made for bypassing the hCaptcha.

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

4 participants