-
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 for url: https://www3.cmbi.umcn.nl/xssp/api/create/pdb_file/dssp #101
Comments
You're probably sending an http GET request. The 'create' entry point expects a POST request. |
I use the following API example code: files = {'file_': open(pdb_file_path, 'rb')} I use post request for 'create' entry. |
You need to add a slash to the end of your 'url_create':
|
I add a slash there but got the same error. |
What is the value of 'rest_url' in your code? |
I meet the same error, rest_url = "http://www.cmbi.umcn.nl/xssp/" |
Please try:
|
To me it also works with verify=True. But yes, the https protocol is mandatory. Though, you're supposed to be redirected. A 4xx error indicates a problem with the request. Is there any error message provided with the error? |
I meet the same error, did you solve it? |
你好,你的邮件已收到。谢谢!
|
How about my suggestion of using a POST request? |
I am also getting this same error. |
你好,你的邮件已收到。谢谢!
|
I try to extract dssp using API example provided, either by pdb_id or pdb_files, but neither works. I got 405 Client Error: METHOD NOT ALLOWED for url: https://www3.cmbi.umcn.nl/xssp/api/create/pdb_file/dssp. Anyone could help with that? Thank you.
The text was updated successfully, but these errors were encountered: