0

I have two Lumen microservices with (as far as I can tell) identical configuration. One shows a user-friendly error page, one doesn't.

Both services have this simple controller method:

public function test()
{
    echo $a;
    exit;
}

One of the services only shows:

Oops! An Error Occurred The server returned a "500 Internal Server Error". Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

The other service shows the stacktrace, etc.

APP_DEBUG=true and APP_ENV=local on both environments. I verified these settings by echo'ing them in the controller method.

What setting could I be missing that prevents me from seeing the stacktrace?

Sherlock
  • 7,525
  • 6
  • 38
  • 79

1 Answers1

0

The problem was that I have a config/app.php file where the debug setting was missing. Adding 'debug' => env('APP_DEBUG', false), to the array solved my issue.

Sherlock
  • 7,525
  • 6
  • 38
  • 79