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

Error: The action is timeout. #78

Open
kallefrombosnia opened this issue Feb 23, 2021 · 3 comments
Open

Error: The action is timeout. #78

kallefrombosnia opened this issue Feb 23, 2021 · 3 comments

Comments

@kallefrombosnia
Copy link

kallefrombosnia commented Feb 23, 2021

Hello, I have a problem with this error.

I checked every issue here and all of them are timeouts after 2 minutes of page loading, but for me, the problem occurs after page load < 2 minutes. More precisely seconds after js load and submit.

Laravel 8, PHP 7.3.7
My controller:

class ReservationController extends Controller
{
    public function createReservation(Request $request){

         // Here validation fails with timeout message
        $request->validate([
            'room' => 'required|exists:rooms,id',
            'email' => 'required|email',
            'phone' => 'required|max:128',
            'dateReservation' => ['required', new DateInPastCheck, new DateArrivalLeaveCheck],
            'name' => 'required|string|min:3|max:150',
            'g-recaptcha-response' => [new GoogleReCaptchaV3ValidationRule('order')],
        ]);

       // ...
    }
}

But when I test before request validation everything passes normally.

class ReservationController extends Controller
{
    public function createReservation(Request $request){

        dd(GoogleReCaptchaV3::verifyResponse(
            $request->input('g-recaptcha-response'),
            $request->getClientIp()
            )
         ->getMessage());

        // ....
    }
}
@w99910
Copy link

w99910 commented Jun 12, 2021

I got the same issue.
Can I know if someone has solution ?

@nolros
Copy link

nolros commented Sep 5, 2021

Need to run this.$refs.captcha.execute(); after the response (success or error) otherwise you are submitting the same token.

@nausixkiz
Copy link

I got the same issue.
Is there anyway to solve this problem with javascript instead of vue ?
I have tried

    <script type="text/javascript">
        setInterval(function () {
            refreshReCaptchaV3('sign_in_id', 'sign_in');
        }, 120000);
    </script>

but this still happen

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

4 participants