Reputation: 2177
Every 30 or 40 minutes I see the following exception when streaming application logs from our Azure Website sorry.... Azure Web App :-)
Application: Microsoft.WindowsAzure.Storage.StorageException: The remote server returned an error: (400) Bad Request. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
Application: at System.Net.HttpWebRequest.GetResponse()
Application: at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext)
Application: --- End of inner exception stack trace ---
Application: at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext)
Application: at Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob.PutBlockList(IEnumerable`1 blockList, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)
Application: at Microsoft.WindowsAzure.WebSites.Diagnostics.AzureBlobTraceListener.AppendStreamToBlob(Stream stream)
Application: at Microsoft.WindowsAzure.WebSites.Diagnostics.AzureBlobTraceListener.ConsumeBuffer()
Application: Request Information
Application: RequestDate:Thu, 26 Mar 2015 22:58:05 GMT
Application: StatusMessage:The specified block list is invalid.
Application: ErrorCode:InvalidBlockList
Is this to be expected when you have diagnostic logging enabled on an Azure App Service? Is it just a First Chance Exception to just ignore?
Upvotes: 1
Views: 948
Reputation: 3802
The exception stack trace does not include your Service Bus Queue call, so it should not be caused by you calling SendAsync. AzureBlobTraceListener is a .NET trace listener that uploads all the trace and debug output to Azure Blob service. It looks like it is experiencing an issue while uploading those blobs.
We confirmed that this is a bug in AzureBlobTraceListener and it is now fixed. Thank you for reporting this and we apologize for the inconvenience.
If, however, your App service logging was not supposed to be enabled in the first place, please see Enable diagnostics logging for web apps in Azure App Service for more information.
Upvotes: 2