kevin-mitchell / alexa-app

Set of classes to make creating Amazon Alexa Skills Kit (ASK) applications easier with Laravel and Lumen
MIT License
97 stars 47 forks source link

route not found on Laravel 5.5 #48

Open robertmindroi opened 6 years ago

robertmindroi commented 6 years ago

I am trying to use this package in an app, but every time I add it my POST route gives not found exception NotFoundHttpException when used with a JSON payload.

Route::post('/talk', 'ConversationController@talk')->name('talk');

The error is the following

{ "message": "", "exception": "Symfony\Component\HttpKernel\Exception\NotFoundHttpException", "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php", "line": 179, "trace": [ { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 612, "function": "match", "class": "Illuminate\Routing\RouteCollection", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 601, "function": "findRoute", "class": "Illuminate\Routing\Router", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 590, "function": "dispatchToRoute", "class": "Illuminate\Routing\Router", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/develpr/alexa-app/src/Http/Middleware/Request.php", "line": 83, "function": "dispatch", "class": "Illuminate\Routing\Router", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 114, "function": "Develpr\AlexaApp\Http\Middleware\{closure}", "class": "Develpr\AlexaApp\Http\Middleware\Request", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/fideloper/proxy/src/TrustProxies.php", "line": 56, "function": "Illuminate\Pipeline\{closure}", "class": "Illuminate\Pipeline\Pipeline", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 149, "function": "handle", "class": "Fideloper\Proxy\TrustProxies", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php", "line": 30, "function": "Illuminate\Pipeline\{closure}", "class": "Illuminate\Pipeline\Pipeline", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 149, "function": "handle", "class": "Illuminate\Foundation\Http\Middleware\TransformsRequest", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php", "line": 30, "function": "Illuminate\Pipeline\{closure}", "class": "Illuminate\Pipeline\Pipeline", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 149, "function": "handle", "class": "Illuminate\Foundation\Http\Middleware\TransformsRequest", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php", "line": 27, "function": "Illuminate\Pipeline\{closure}", "class": "Illuminate\Pipeline\Pipeline", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 149, "function": "handle", "class": "Illuminate\Foundation\Http\Middleware\ValidatePostSize", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php", "line": 46, "function": "Illuminate\Pipeline\{closure}", "class": "Illuminate\Pipeline\Pipeline", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 149, "function": "handle", "class": "Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 102, "function": "Illuminate\Pipeline\{closure}", "class": "Illuminate\Pipeline\Pipeline", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/develpr/alexa-app/src/Http/Middleware/Request.php", "line": 84, "function": "then", "class": "Illuminate\Pipeline\Pipeline", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/develpr/alexa-app/src/Http/Middleware/Request.php", "line": 65, "function": "sendRequestThroughRouter", "class": "Develpr\AlexaApp\Http\Middleware\Request", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 149, "function": "handle", "class": "Develpr\AlexaApp\Http\Middleware\Request", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php", "line": 53, "function": "Illuminate\Pipeline\{closure}", "class": "Illuminate\Pipeline\Pipeline", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 102, "function": "Illuminate\Routing\{closure}", "class": "Illuminate\Routing\Pipeline", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", "line": 151, "function": "then", "class": "Illuminate\Pipeline\Pipeline", "type": "->" }, { "file": "/home/vagrant/lizuk/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", "line": 116, "function": "sendRequestThroughRouter", "class": "Illuminate\Foundation\Http\Kernel", "type": "->" }, { "file": "/home/vagrant/lizuk/public/index.php", "line": 55, "function": "handle", "class": "Illuminate\Foundation\Http\Kernel", "type": "->" } ] }

If I remove the package everything is working fine. I am using Laravel 5.5.32

Do you have any insight into this?