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

timeouts not being handled #27

Open
rbmcgowan opened this issue Jan 15, 2021 · 3 comments
Open

timeouts not being handled #27

rbmcgowan opened this issue Jan 15, 2021 · 3 comments

Comments

@rbmcgowan
Copy link

Hi, I am seeing the following errors appear in the logs occasionally. The application is hosted in a data centre so it's unlikely to be related to an internet outage, especially since there have been a few of them over the past month. Regardless, it would be good if the code monitored for this and moved on rather than failing.

ERROR: The following errors were thrown when trying to resolve the recaptcha token: timeout-or-duplicate {"exception":"[object] (Lukeraymonddowning\Honey\Exceptions\RecaptchaFailedException(code: 0): The following errors were thrown when trying to resolve the recaptcha token: timeout-or-duplicate at /var/www/html/laravel/vendor/lukeraymonddowning/honey/src/Recaptcha.php:37)

@lukeraymonddowning
Copy link
Owner

Hi there. Are you using Livewire?

@rbmcgowan
Copy link
Author

Hi Luke, no there is no Livewire.

@usernotnull
Copy link

I'm using Livewire and I have previously reported this issue, and a PR was submitted and fixed the issue.

I am currently facing a similar issue again, but due to the complexity of the layout changes, I won't bother reproducing the steps.

Suffice to say, when the x hits the fan, manually call '$this->requestRecaptchaTokenRefresh();' which was added by the PR.
Resolved my issue in a complex setup. See if you can catch the error and call that method.

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

3 participants