gabdel1
3 months ago

Maintenance Mode Exception

Posted 3 months ago by gabdel1

Hello, I am running a laravel application where I serve an SPA through Vue, and whenever I enable maintenance mode the CheckForMaintenanceMode doesnt seem to be handled properly and the browser just returns a JSON of the uncaught Exception.

{
    "message": "",
    "exception": "Illuminate\Foundation\Http\Exceptions\MaintenanceModeException",
    "file": "/Users/abdeltwg/Development/valet/redesign/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php",
    "line": 59,
    "trace": [
        {
            "file": "/Users/abdeltwg/Development/valet/redesign/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 163,
            "function": "handle",
            "class": "Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode",
            "type": "->"
        },
        {
            "file": "/Users/abdeltwg/Development/valet/redesign/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php",
            "line": 53,
            "function": "Illuminate\Pipeline\{closure}",
            "class": "Illuminate\Pipeline\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/abdeltwg/Development/valet/redesign/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 104,
            "function": "Illuminate\Routing\{closure}",
            "class": "Illuminate\Routing\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/abdeltwg/Development/valet/redesign/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 151,
            "function": "then",
            "class": "Illuminate\Pipeline\Pipeline",
            "type": "->"
        },
        {
            "file": "/Users/abdeltwg/Development/valet/redesign/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 116,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\Foundation\Http\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/abdeltwg/Development/valet/redesign/public/index.php",
            "line": 55,
            "function": "handle",
            "class": "Illuminate\Foundation\Http\Kernel",
            "type": "->"
        },
        {
            "file": "/Users/abdeltwg/.composer/vendor/laravel/valet/server.php",
            "line": 147,
            "function": "require"
        }
    ]
}

I am currently on Laravel 5.8

Any help is much appreciated.

Please sign in or create an account to participate in this conversation.