[Bug] captcha error: TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"
See original GitHub issueHello, We are getting this strange error when using your plugin + 2captcha on https://www.txtag.org/txtagstorefront/en/login. Is this related to a recent update? It used to work very recently. Thanks!
PuppeteerExtraPluginRecaptcha: An error occured during "getRecaptchaSolutions": { _vendor: 'recaptcha',
provider: '2captcha',
id: 'r47e8g9qcfup',
requestAt: 2021-03-15T21:28:43.036Z,
error:
'Error: 2captcha error: TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"' }
SNAPSHOT: Error
step 1
url: https://www.txtag.org/txtagstorefront/en/login
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (6 by maintainers)
Top Results From Across the Web
[BUG] Protocol "https:" not supported. Expected "http:" #2003
I got the same error in my macOS with the same node/npm version. I've fixed this error by unset all the proxy environment:...
Read more >Node js Error: Protocol "https:" not supported. Expected "http:"
My project needs to request a JSON from an API, so I can use the data it provides. I use the http get...
Read more >reCAPTCHA Help
reCAPTCHA is a free service from Google that helps protect websites from spam and abuse. A “CAPTCHA” is a turing test to tell...
Read more >Node js Error: Protocol "https:" not supported. Expected "http:"
JavaScript : Node js Error : Protocol " https :" not supported. Expected " http :" [ Gift : Animated Search Engine :...
Read more >Typeerror error invalid protocol protocol https not supported ...
Error: protocol https:'' not supported expected http in postman. This is caused by running your application using SSL but calling it via normal...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@alamothe @Inamacio @Porkts please upgrade to
puppeteer-extra-plugin-recaptcha@3.3.7
which (properly) reverts back to use the http API - apologies for the inconvenience. 😓I just noticed this issue when I was looking at the latest PR to switch to HTTPS: https://github.com/berstend/puppeteer-extra/pull/457
I think that error message means that the
http
module was used to try to make an HTTPS request, not that 2captcha doesn’t support HTTPS. See https://stackoverflow.com/questions/34147372/node-js-error-protocol-https-not-supported-expected-http. From what I’ve seen, 2captcha supports HTTPS and I’ve never had a problem using it.That new PR removes the
http
module entirely, so if there was a bug in the logic about when to use thehttp
module and when to use thehttps
, it might be fixed.