-
Notifications
You must be signed in to change notification settings - Fork 141
Unhandled rejection CloudflareError: 1020 #268
Comments
I'm not blacklist. I tried from my pc and VPS (same thing), even using proxies. |
@MasterProgs that's great. Do you mind helping others out by mentioning what specifically worked for you? As in, if it was a cipher string, which one and what's the OS/CPU? The unhandled rejection is referring to promise rejection. Cloudscraper returns a promise by default and it must be caught/handled: |
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. |
@pro-src By the way, when I use this cyphers 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. |
Cloudflare's fingerprinting/blacklisting. They use deep learning algorithms to detect bot-like patterns and in some cases will even send your IP to their Bandwidth Alliance Partners to have your bot kicked offline. They've promised to start cracking down on bots and the increase in bug reports is mostly likely related to that ongoing effort. Be sure that Cloudflare can determine whether you're using a VPN, residential, or some other cloud service provider. Have you tried: |
Yeah I tried but still not working :/ |
If you search around in the issues, I've provided more elaborate explanations for what the problem is in the majority of cases. Namely, the TLS signature algorithms. You used to be able to just use TLSv1 which doesn't have that TLS extension (insecure btw) but even that isn't working for some sites now. If you can compile Node.js with BoringSSL, that will solve the TLS problems. Electron does that but it's not any easy task. You could compile libcurl with BoringSSL and create a native extension for Node.js. But there's nothing we can really do for a fool proof fix without compiling something. Have a look at https://www.google.com/search?q=residential+proxy+service Also, other languages have this problem as well, such as, Python and Go, no good solution there either. |
And with python we've got the same issues ? Thank you for time, I appreciate. |
Yup. |
Right, 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). |
Actually, we're in luck! This just landed: nodejs/node#29598 |
The following only works on Node.js v12.11.0 and will be ignored for earlier versions: const cloudscraper = require('cloudscraper');
// cloudscraper.defaultParams.agentOptions.ciphers = 'ECDHE-ECDSA-AES128-GCM-SHA256';
cloudscraper.defaultParams.agentOptions.ciphers += ':@SECLEVEL=5:@STRENGTH';
cloudscraper.defaultParams.agentOptions.sigalgs = 'ECDSA+SHA256'; Tests: https://github.com/OYTIS/node/blob/2b976ab59dfc01fe1a77141ae1f69ca10eadd408/test/parallel/test-tls-set-sigalgs.js#L64-L74 |
@pro-src Damn it, don't working.. Still with.. Cloudflare #1020 That's the Header reponse :
Thank you for ur time dude ;) Btw : I update Node to 12.11.0 |
Np :) If you're getting redirected, add the Hop on IRC, if you want to chat, I could use another tester. Links to web based IRC client are on my patreon page. |
node -p 'require("cloudscraper/package.json").version'
node -p process
v10.16.3Code snippet
Thank's.
The text was updated successfully, but these errors were encountered: