server icon indicating copy to clipboard operation
server copied to clipboard

405 Method not allowed on production

Open vanvanni opened this issue 5 years ago • 5 comments

Hi,

Currently I'm running "laravel/framework": "^8.10" with "sajya/server": "^2.0". When I'm on my local machine(windows) the rpc endpoint works fine when posting. When I do the same post to the production environment via Postman I get the error The server returned a "405 Method Not Allowed". I have cleared the routes and cached them again. The production systen is running Ubuntu

vanvanni avatar Dec 04 '20 18:12 vanvanni

Hey Joey. I doubt I can reproduce my error. But I can help realize it. Error 405 is not Sajya answer. That is, the package does not start its work either. Do you have cached routes?

Execute the artisan command

php artisan route:clear

It would also be great if you specified the command and headers, for example, using curl.

tabuna avatar Dec 05 '20 23:12 tabuna

Hey Joey. I doubt I can reproduce my error. But I can help realize it. Error 405 is not Sajya answer. That is, the package does not start its work either. Do you have cached routes?

Execute the artisan command

php artisan route:clear

It would also be great if you specified the command and headers, for example, using curl.

I did already gave that a shot before posting the issue, but I will try again tonight and see if it changes anything.

vanvanni avatar Dec 11 '20 16:12 vanvanni

Hey Joey. I doubt I can reproduce my error. But I can help realize it. Error 405 is not Sajya answer. That is, the package does not start its work either. Do you have cached routes? Execute the artisan command

php artisan route:clear

It would also be great if you specified the command and headers, for example, using curl.

I did already gave that a shot before posting the issue, but I will try again tonight and see if it changes anything.

Still the same issues

vanvanni avatar Dec 18 '20 11:12 vanvanni

same error returns.

'Laravel Framework 8.62.0' 'sajya/server 4.0.2'

Just quick start followed.

magic-thomas avatar Sep 30 '21 15:09 magic-thomas

Maybe it's a little late, but can help others later facing to same issue. In my case my fault caused the same problem, and that was trivial. Our production server run on https, but i sent the calls through standard http, when I tried to test the jsonrpc backend. The apache server forwarded the calls to https, but with GET method. That's why I got 405 errors from the laravel backend.

tocsa avatar Sep 16 '22 08:09 tocsa