vendredi 24 novembre 2017

How can I debug a Laravel kernel NotFoundHttpException exception

I am using Laravel Passport to do my auth and have gone through thoroughly the docs

Using Postman I am trying to test it by requesting a token through /oauth/token endpoint, using the client_credentials it created, something like

{
"grant_type": "client_credentials",
"client_id": 1,
"client_secret": "HjBTQ06M9sW4Ypf9oCAHZVtzuPfqTEsuco84aDjE"
}

I am getting the error

 "message": "",
"exception": "Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException",
"file": "/var/www/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php",
"line": 179,
"trace": [
    {
        "file": "/var/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
        "line": 612,
        "function": "match",
        "class": "Illuminate\\Routing\\RouteCollection",
        "type": "->"

Along with a large stacktrace I won't copy here for now - but nowhere can I find any clear indication what the issue is.

The bottom of the stacktrace in case it helps is

        {
        "file": "/var/www/public/index.php",
        "line": 55,
        "function": "handle",
        "class": "Illuminate\\Foundation\\Http\\Kernel",
        "type": "->"

I'm at a loss as to even start debugging this, as its Laravel kernel stuff it seems ? Can anyone shed light on the error in relation to Passport or help troubleshoot?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2BijMyN
via IFTTT

Aucun commentaire:

Enregistrer un commentaire