This project is read-only.


(400) Bad Request



I receive the following error message (in some jobs) and the job fails. This can happen to the same job that ran correctly another time. It just happens unexpectedly. Is it a known issue or it justs happens due to my specific configuration? This may also make the instances stop working properly and maybe require a reboot/reimaging.

Microsoft.WindowsAzure.StorageClient.StorageClientException: "The value for one of the HTTP headers is not in the correct format."

at Microsoft.WindowsAzure.StorageClient.Tasks.Task1.get_Result()
at Microsoft.WindowsAzure.StorageClient.Tasks.Task
at Microsoft.WindowsAzure.StorageClient.CloudBlockBlob.PutBlock(String blockId, Stream blockData, String contentMD5)
at Microsoft.EMIC.Cloud.Storage.Azure.BlobExtensions.AppendText(CloudBlockBlob blockBlob, String text) in c:\VENUS\gwdrop\core\Microsoft.EMIC.Cloud.Storage.Azure\BlobExtensions.cs:line 83
at Microsoft.EMIC.Cloud.Storage.Azure.BlobExtensions.AppendText(CloudBlockBlob blockBlob, String text, Int32 maxBytes) in c:\VENUS\gwdrop\core\Microsoft.EMIC.Cloud.Storage.Azure\BlobExtensions.cs:line 106
at Microsoft.EMIC.Cloud.GenericWorker.AzureProvider.AzureGWRuntimeEnvironment.WriteStdOut(IJob job, String output) in c:\VENUS\gwdrop\core\Microsoft.EMIC.Cloud.GenericWorker.AzureProvider\AzureGWRuntimeEnvironment.cs:line 557
at Microsoft.EMIC.Cloud.GenericWorker.AzureProvider.AzureGWRuntimeEnvironment.UpdateJobOutputs(IJob iJob, StringBuilder stdout, StringBuilder stderr, StringBuilder statusText) in c:\VENUS\gwdrop\core\Microsoft.EMIC.Cloud.GenericWorker.AzureProvider\AzureGWRuntimeEnvironment.cs:line 521

at Microsoft.EMIC.Cloud.GenericWorker.GenericWorkerDriver.Run(CancellationToken ct) in c:\VENUS\gwdrop\core\Microsoft.EMIC.Cloud.GenericWorker\GenericWorker\GenericWorkerDriver.cs:line 564

System.Net.WebException: "The remote server returned an error: (400) Bad Request."

at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

at Microsoft.WindowsAzure.StorageClient.EventHelper.ProcessWebResponse(WebRequest req, IAsyncResult asyncResult, EventHandler`1 handler, Object sender)


ameick wrote Jul 3, 2012 at 10:54 AM

this seems to be a new excpetion.
I'll investigate that and come back to you as soon as I can.

Best regards,

ameick wrote Jul 3, 2012 at 2:18 PM

Hi again,
could you please let me know, which version of the GW you are using?
I'll do some testing with the latest one (2.0.4).

Best regards,

dimitris312 wrote Jul 3, 2012 at 8:55 PM

I'm using version 2.0.4.
Thank you. very much.


ameick wrote Jul 5, 2012 at 2:42 PM

Hello Dimitris,
Unfortunately I'm not able to reproduce your problem. I submitted several jobs with 3MB of output on Stdout in small chunks and everything went fine.

I suggest that you submit your jobs to my deployment to see if the error then occurs. If yes, this will enable me to get a better understanding of the error.
Please contact me via direct mail or via one of the mailing lists to exchange the connection details.

Best regards,

ameick wrote Aug 8, 2012 at 4:15 PM

Hello Dimitris,
I did another deep dive into that topic and finally found the problem.

A fix is available and will be included in V2.0.5.
If you need a fixed version by now, please contact me via mail so that I can provide you a fixed package.

Best regards,