-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
405 Client Error: METHOD NOT ALLOWED when api endpoint redirects #61
Comments
When I try the same using python requests, I get 500 instead of 405. The logs give no output though. |
Adding the following bit of code to
|
This is not the correct solution. A route with a trailing slash redirects to the route without the trailing slash. The problem is that this (in 2014) changed the request from a The |
I see just the 500 error in the client. Nothing else. No log output from either flask or xssp_api. |
Try and trace the cause. Something is causing the 500 error. You can add logging statements, for example. |
I think the error occurs somewhere in flask. Setting DEBUG=True however, doesn't add any log messages either. |
When an api request is made to
xssp/api/create/pdb_id/hssp_hssp
(without trailing slash) the endpoint redirects toxssp/api/create/pdb_id/hssp_hssp/
with trailing slash. This is correct behaviour except that the redirect changes the request from aPOST
to aGET
, resulting in a405 Client Error: METHOD NOT ALLOWED
The text was updated successfully, but these errors were encountered: