on 2024 Sep 02 11:31 AM
Hi all,
I hope this message finds you well.
I am currently facing an issue with my application backend, which I have developed using the Python Django framework. The application consists of several APIs that have been thoroughly tested and work perfectly fine when run locally. The APIs correctly handle different request types (e.g., POST, GET, PUT, etc.) without any issues.
However, after deploying the application to the Cloud Foundry environment on SAP BTP, I’ve encountered a strange issue where all incoming requests are being interpreted as GET requests, regardless of the original request method. This problem surfaced suddenly, despite the application working as expected after the initial deployment.
What I’ve Tried:
Despite these efforts, the problem persists only when the application is deployed on Cloud Foundry. I’m reaching out to see if anyone in the community has experienced a similar issue or can provide insights into what might be causing Cloud Foundry to interpret all requests as GET requests.
Any guidance or suggestions for further troubleshooting steps would be greatly appreciated.
Thank you in advance for your support!
Best regards,
Keerthi
Request clarification before answering.
Finding: if the client accidentally uses http://... instead of https://..., this issue will occur (i.e. POST gets changed to GET and other verbs DELETE/PATCH/PUT don't get changed).
Solution: Client should use https://... URL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
30 | |
8 | |
8 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.