Since there is no substring .html# (html is followed by ?_v=…) the URL stays unmodified, and parameters like id, sitekey and size can't be extracted from the query string.
As a result, in logs I get message:
PuppeteerExtraPluginRecaptcha: An error occured during "getRecaptchaSolutions": {
_vendor: 'hcaptcha',
provider: '2captcha',
error: 'Error: Missing data in captcha'
}
I think, the quick workaround colud be something like:
if there is .html? in iframe URL, just replace '#' with '&', which will make _v a common GET-parameter, otherwise replace .html# with .html?
The plugin works great with reCAPTCHA, however it throws an error on pages with hCaptcha
After some investigations, I came to the following problem:
There is a block of code inside the plugin, where hCaptcha parameters are extracted:
The hCaptcha iframe URL has the following format:
Since there is no substring
.html#
(html is followed by ?_v=…) the URL stays unmodified, and parameters like id, sitekey and size can't be extracted from the query string.As a result, in logs I get message:
I think, the quick workaround colud be something like: if there is
.html?
in iframe URL, just replace '#' with '&', which will make_v
a common GET-parameter, otherwise replace.html#
with.html?