Level 3
All my fault. I was doing Auth::check() in App\Exceptions\Handler@report to add user-context data to Sentry reports.
Solution: check if App::runningInConsole().
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm getting that in my local env whenever something fails in the console, eg failed queue jobs (instead of the actual error that made it fail, I get a short stack trace up until 'Session store not set on request.').
All related discussions I found mention L5.2 web middleware, but I'm on L5.1.
Neither the stack trace nor the log file provide any clue about what is going on.
Does anyone have an idea?
All my fault. I was doing Auth::check() in App\Exceptions\Handler@report to add user-context data to Sentry reports.
Solution: check if App::runningInConsole().
Please or to participate in this conversation.