puppeteer-extra: [Bug] captcha error: TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"
Hello, 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
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (6 by maintainers)
@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.