@azure/storage-blob@>12.2.0 throws `Bad Request - Invalid Verb` on upload
See original GitHub issueSimilar to #11163.
I have script running every 5 minutes for all of eternity that uploads to blob storage, starting ~a day ago I started getting consistent Bad Request - Invalid Verb
errors from this code:
const blobServiceClient = BlobServiceClient.fromConnectionString(key)
const containerClient = blobServiceClient.getContainerClient(container)
const createContainerResponse = containerClient.getBlockBlobClient(name)
await createContainerResponse.uploadStream(Readable.from([text]))
This is consistent with the release of 12.2.0, which I see made some changes to the uploadStream
method.
The exact response is as follows:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request - Invalid Verb</h2>
<hr><p>HTTP Error 400. The request verb is invalid.</p>
</BODY></HTML>
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:34 (23 by maintainers)
Top Results From Across the Web
All browsers & all sites I get errors: Invalid Verb - Requst
The request verb is invalid. Same sites errors according to IE (11.0.9600.17801): Site 1. Error 400 (Bad request) [Title]
Read more >Intermittent 400 "Invalid Verb" er… | Apple Developer Forums
I have an Enterprise iOS app that allows users to upload images to our Sharepoint Intranet. The app simply does a PUT request...
Read more >How to Fix a 400 Bad Request Error (Causes and Fixes) - Kinsta
The 400 Bad Request error indicates that the server cannot or process the request due to a client error. Read about the common...
Read more >Cannot upload to azure Blob Storage: The remote server ...
If you request a container with an invalid name, it will result in (400) Bad Request, which you are getting. So check your...
Read more >Getting Bad Request (Invalid Verb) when uploading a page ...
When I specify a file to upload and submit the form I'm given a Bad Request (Invalid Verb) HTTP Error 400 page instead...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We belive this issue is addressed in the hotfix: @azure/storage-blob@12.2.1 and @azure/storage-file-datalake@12.1.1 Let me know if not.
A fix is coming soon. Before that, could you call
uploadFile
for file, orstageBlock
andcommitBlockList
individually.Also, disabling keep-alive will also work.