I'm suddenly getting the Bad Request (400) error when using the Azure Storage Emulator when trying to CreateIfNotExists. The Response on the Inner Exception says "The value for one of the HTTP headers is not in the correct format." All the tables exist, the data is in the tables, everything was working up until an update to my NuGet packages. Looking around SO it seems like a common cause is an update to Azure Storage Client Library (now at 5.0.0) that creates a mismatch. I updated the Azure SDK to 2.6 (since I have VS2012). This brings the Storage Emulator up to 4.0.0.0, but still no luck...same error. This is kind of a bad thing that suddenly an update to a package of a package of a package causes the whole thing to break and completely kills my rather large project. Any ideas?
In my case, the problem was with the Container Name, which has strict naming requirements.
Namely:
- Only lowercase letters, numbers, and dash are allowed
- Must be 3 to 63 characters
For more information, view Naming and Referencing Containers, Blobs, and Metadata on MSDN.
I don't know if this is a problem for anyone else, but this is what I have figured out...
.
My "philosophical" issues with this whole thing are...
I understand the Storage Client Library isn't technically "dependent" on the emulator...you don't need the emulator to use Azure Storage. However, it would just be nice if some of these relationships were a little easier for a software oaf like me to figure out.
For me, I got this issue upon upgrading to the currently latest WindowsAzure.Storage version 9.3.1
package.
After hours of trying out various combinations of container names, and other stuff, the simplest solution was to roll back to the older and working version 8.6.0
!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With