leonvr
leonvr

Reputation: 113

The payload is invalid

I am new to Laravel. When I am in debug mode I get the following errors every time every page loads:

The payload is invalid

After pressing two times on Continue I get the error

The MAC is invalid

The error messages are located inside the encrypter.php file. After pressing "Continue" again, I can proceed with debugging with breakpoints and so on, and everything works fine. The $payload-variable is null.

The project is still very basic. Only some things like CRUD like explained on tutorials.

What is payload? And am I missing some kind of configuration? How to get rid of these error messages?

Screenshot Error message

Upvotes: 0

Views: 1887

Answers (1)

Leon
Leon

Reputation: 65

The answer is found in this post:

Can't using Visual Code to debug in Laravel project

I also:

  1. closed VS Code Editor
  2. cleared all history in my browser, including cookies and cache
  3. ran the commands as mentioned in the post inside the windows cmd window (so not the integrated terminal inside VS Code Editor)

Upvotes: 1

Related Questions