【发布时间】:2018-03-14 21:40:12
【问题描述】:
我有时会收到此错误,然后它会自动消失。无法跟踪我收到此错误的原因。而且我认为它会在会话到期时得到修复。这是错误屏幕
(1/1) Exception
DateTime::__construct(): Failed to parse time string (2018-03-10 18:06:52.-955808) at position 24 (8): Unexpected character
in Carbon.php (line 408)
at DateTime->__construct('2018-03-10 18:06:52.-955808', object(DateTimeZone))
in Carbon.php (line 408)
at Carbon->__construct('2018-03-10 18:06:52.-955808', null)
in Carbon.php (line 457)
at Carbon::now()
in FileSessionHandler.php (line 70)
at FileSessionHandler->read('SEOHFptNtGSB4YmLTb7IAegTxX6EZcAFGB2wnvPZ')
in Store.php (line 96)
at Store->readFromHandler()
in Store.php (line 86)
at Store->loadSession()
in Store.php (line 70)
at Store->start()
in StartSession.php (line 103)
at StartSession->Illuminate\Session\Middleware\{closure}(object(EncryptedStore))
in helpers.php (line 964)
at tap(object(EncryptedStore), object(Closure))
in StartSession.php (line 104)
at StartSession->startSession(object(Request))
in StartSession.php (line 58)
at StartSession->handle(object(Request), object(Closure))
in Pipeline.php (line 148)
【问题讨论】:
-
相同。我的代码工作得很好,但我突然收到了那个错误,我不知道是什么触发了它。我正在使用 laravel 5.4
-
我也在用L-5.4
-
可能相关:github.com/laravel/framework/issues/23458。似乎是 Carbon 中的一个错误。
-
在 laravel 4.2 上也一样,一切正常,然后突然发生这种情况