简体   繁体   English

Laravel 全新安装 - 解密错误

[英]Laravel Fresh Install - Decrypt Error

I'm running a fresh laravel 5.4 install, the application key successfully set and to my knowledge setup properly.我正在运行新的 laravel 5.4 安装,应用程序密钥已成功设置,并且据我所知设置正确。

Howerver, when I enable XDebug I get the following error:但是,当我启用 XDebug 时,出现以下错误:

throw new DecryptException('The payload is invalid.');

Laravel 抛出解密异常

$Payload is null, is there any thing i forgot to setup? $Payload 为空,有什么我忘记设置的吗? or can I safely ignore this exception before going into production or how can I fix this?或者我可以在投入生产之前安全地忽略这个异常,或者我该如何解决这个问题? Keep in mind this is a brand new install and php artisan key:generate was run请记住,这是一个全新的安装和php artisan key:generate已运行

This "Decrypter" processes every key/value of the cookies, so you can't actually avoid throwing this DecryptException while debugging.这个“Decrypter”处理 cookie 的每个键/值,所以你实际上无法避免在调试时抛出这个 DecryptException。 It works for me when I changed the breakpoint config from "everything" to "Notice" only.当我将断点配置从“一切”更改为“通知”时,它对我有用。

截屏

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM