question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] captcha error: TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
berstendcommented, Mar 16, 2021

@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. 😓

1reaction
Tyler-Murphycommented, Mar 24, 2021

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 the http module and when to use the https, it might be fixed.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found