Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting unhandledRejection due to missing await keyword #6

Open
dekelev opened this issue Nov 11, 2022 · 0 comments
Open

Getting unhandledRejection due to missing await keyword #6

dekelev opened this issue Nov 11, 2022 · 0 comments

Comments

@dekelev
Copy link

dekelev commented Nov 11, 2022

The call to the solver.decodeReCaptcha method is missing an await keyword, so any error in it (e.g. 504 Gateway error) will not be caught as expected and will lead to unhandledRejection in the NodeJS process.

image

After adding the await keyword (and the async keyword on the returned method), an error is thrown as expected, but the end result object that is returned to the client, has the Captcha in the solved array in addition to the error property, which is not consistent with the behavior of the puppeteer-extra-plugin-recaptcha. Expected behavior is that the solved array will be empty when an error is thrown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant