-
Notifications
You must be signed in to change notification settings - Fork 129
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
HTTP Error 400. The request verb is invalid #5450
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @EmmaZhu @Jinming-Hu @vinjiang. |
I think this is a bug of storage service. It seems to me the server side still expects request body when the status code is 4xx, while it shouldn't because there's I tried to add this->UploadBody(context); after Line 488
then the 2nd request succeeded. |
This is a regression caused by #5308 |
## 1.11.3 (2024-04-09) ### Bugs Fixed - [[microsoft#5450]](Azure/azure-sdk-for-cpp#5450) Reverted libcurl connection pool to use more conservative caching strategy. - [[microsoft#4352]](Azure/azure-sdk-for-cpp#5371) Fixed compilation error on Visual Studio 2017. (A community contribution, courtesy of _[morten-ofstad](https://github.com/morten-ofstad)_) ### Acknowledgments Thank you to our developer community members who helped to make Azure Core better with their contributions to this release: - Morten Ofstad _([GitHub](https://github.com/morten-ofstad))_
## 1.12.0 (2024-05-09) ### Bugs Fixed - [[microsoft#5450]](Azure/azure-sdk-for-cpp#5450) Fixed libcurl connection pool to use `Connection` response header values.
Describe the bug
After a recent vcpkg upgrade we started to see error "400 - The request verb is invalid" when doing a request to blob storage after a failed attempt to upload to a blob that doesn't exist. I was able to get to a minimum code sample that reproduces the issue. When we try to upload data to a blob that doesn't exist, we get an exception. If we catch the exception and try to do some other blob operation, for example, we want to create a container, the new operation fails with error 400 - The request verb is invalid.
Exception or Stack Trace
To Reproduce
Run the provided code
Code Snippet
Expected behavior
The call to create container "create2" should succeed.
Screenshots
n/a
Setup (please complete the following information):
Additional context
The sample provided here fails with the latest vcpkg. In our codebase it fails with vcpkg ref "002c5b065927a6142dd7858813f25a10947094d8" from Feb 29, 2024.
I tried to debug the network calls with Fiddler and it was tricky to make it work from WSL to Windows, but I noticed that the PUT call to upload data to the blob that doesn't exist failed with 408 when proxied through Fiddler. The content-length header was set to 12, but no data were sent. I am wondering if the follow-up request could be prefixed by those 12 bytes that were not sent with the PUT request. It's just my idea, I wasn't able to inspect the failing request.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: