-
Notifications
You must be signed in to change notification settings - Fork 839
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 method not allowed #11613
Comments
Hello kulak-daria**,** The “405 Method Not Allowed” error occurs when the server is configured in a way that does not allow you to perform a specific action for a particular endpoint (URL). It's an HTTP response status code that indicates that the request method is known by the server but is not supported by the target resource (your request URL). There are multiple causes for this error, but most commonly, this is caused by the server (endpoint URL) configuration.
I have also referenced a discussion about this response in our Community: https://community.postman.com/t/405-method-not-allowed/16743/3 which has some additional troubleshooting steps you may try. I hope that this information is helpful, and I have included an export of my working collection based on Swagger PetStore documentation - should you wish to test the POST method to "Add a new pet to the store" via @loutsiros | Postman Support |
Thank You! I changed base URL in my POST METHOD request and it WORKS! :) |
You can also check out this comprehensive guide on "How to Fix the “405 Method not Allowed” Error. (8 methods)" For complete step by step method to fix this. |
Is there an existing issue for this?
Describe the Issue
Hello, I create my very first collection based on Swagger PetStore documentation. And I have proplem with methods POST DELETE and PUT. When I send as reqest correct body with JSON format (raw), with headers CONTENT_TYPE application/JSON in response i have status code :405 method not allowed. and in Content-type application/xml. Please help me :) It's my first collection and I really don't have idea what's going on....
![mistake](https://user-images.githubusercontent.com/114069648/211932321-3dc585bc-1c44-42eb-a681-343f820f7a72.png)
![mistake2](https://user-images.githubusercontent.com/114069648/211932332-197f69a2-0792-48aa-adc3-7c106e2ffc5c.png)
In Swagger documentation this reqest work correctly.
Steps To Reproduce
Screenshots or Videos
Operating System
Postman for Windows
Postman Version
Version 10.7.1 UI Version 10.7.1-ui-230107-1501 Desktop Platform Version 10.7.0 Architecture x64 OS Platform win32 10.0.19045
Postman Platform
Other
User Account Type
Signed In User
Additional Context?
No response
The text was updated successfully, but these errors were encountered: