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

The payload is invalid. #39

Open
EGYWEB-Mohamed opened this issue Jul 25, 2021 · 3 comments
Open

The payload is invalid. #39

EGYWEB-Mohamed opened this issue Jul 25, 2021 · 3 comments

Comments

@EGYWEB-Mohamed
Copy link
Contributor

The payload is invalid. {"exception":"[object] (Illuminate\Contracts\Encryption\DecryptException(code: 0): The payload is invalid. at vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php:195)

@davidjr82
Copy link

davidjr82 commented Feb 16, 2022

Sometimes it happens the same to me. I think it happens when a user left the browser opened for a long time in the login page (not logged in), and tries to login.

@MarlonRaphael
Copy link

Tenho este problema ocorrendo aqui também

@v1ncen
Copy link

v1ncen commented Mar 10, 2023

Same issue with a basic contact form (no auth required).
I think it happens when a spammer tries to send some kind of hacked token.

For now I am encapsulating the decrypt attempt with a try/catch
to prevent the DecryptException being logged over and over:

# vendor/lukeraymonddowning/honey/src/InputValues/JavascriptInputValue.php

public function checkValue($value): bool
{
    try {
        return Crypt::decrypt($value) == "Honey";
    } catch (\Throwable $exception) {
        return false;
    }
}

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