question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

6.0 breaking bug - container.CreateIfNotExists() throws an exception.

See original GitHub issue

We just upgraded to 6.0 and noticed an exception getting thrown every time.

https://ci.appveyor.com/project/Exceptionless/foundatio/build/3.0.508

            var account = CloudStorageAccount.Parse(connectionString);
            var client = account.CreateCloudBlobClient();
            _container = client.GetContainerReference(containerName);
            _container.CreateIfNotExists();
Microsoft.WindowsAzure.Storage.StorageExceptionThe remote server returned an error: (400) Bad Request.
   at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync(RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext) in c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Core\Executor\Executor.cs: line 604
   at Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer.CreateIfNotExists(BlobContainerPublicAccessType accessType, BlobRequestOptions requestOptions, OperationContext operationContext) in c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Blob\CloudBlobContainer.cs: line 197
   at Foundatio.Storage.AzureFileStorage..ctor(String connectionString, String containerName) in AzureFileStorage.cs: line 21
   at Foundatio.Azure.Tests.Storage.AzureStorageTests.GetStorage() in AzureStorageTests.cs: line 16
   at Foundatio.Tests.Storage.FileStorageTestsBase.<ResetAsync>d__6.MoveNext() in FileStorageTestsBase.cs: line 110

We are using the latest version of the azure storage emulator for our tests.

Code can be found here: https://github.com/exceptionless/Foundatio

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
pemari-msftcommented, Oct 2, 2015

We are definitely interested in making it as easy as possible for developers. Because of the feedback we’ve heard today, we’ve updated our Readme to include specific information regarding overall versioning and the storage emulator. We are also planning to include this information in our changelog for each release going forward if the emulator will be affected.

If you’re interested in storage announcements, the Azure Blog, filtered for Storage/Backup is where we post our overall updates for the service and specific libraries. If you’re looking for more specific technical updates, the changelog or releases page is the place to be. We will include relevant Emulator lines in the future there as well.

Thanks again for your feedback.

0reactions
mobius127commented, Aug 11, 2017

Hi, I’m taking this error with Table Storage:

AnalysisDepartment.AzureMediaServices.Services.VideoTableStorageService - [ERROR] with Message: at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext) in c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Core\Executor\Executor.cs:line 604 at Microsoft.WindowsAzure.Storage.Table.TableOperation.Execute(CloudTableClient client, CloudTable table, TableRequestOptions requestOptions, OperationContext operationContext) in c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Table\TableOperation.cs:line 44 at Microsoft.WindowsAzure.Storage.Table.CloudTable.Execute(TableOperation operation, TableRequestOptions requestOptions, OperationContext operationContext) in c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Table\CloudTable.cs:line 52 at AnalysisDepartment.AzureMediaServices.Services.VideoTableStorageService.ModifyVideo(VideoStorageModel video) in D:\ProyectosVSO\Project.AnalysisDepartmentWeb\AnalysisDepartmentWeb.AzureMediaServices\Services\Impl\VideoTableStorageService.cs:line 184

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Exception when calling CreateIfNotExists (Azure ...
I am having problem creating an Azure blob container. When I call CreateIfNotExists() function I get the following exception : I have search...
Read more >
CreateIfNotExists error 400 - Microsoft Q&A
The call to CloudBlobClient.GetContainerReference had too much info in it and simply needed to be trimmed down to nothing but the actual container...
Read more >
Release Notes for Flyway Engine
Changes. If Flyway encounters a SQL exception while Oracle Spool is set, the error information is now written to the Spool output. Bug...
Read more >
CloudBlobContainer (Microsoft Azure Storage Client SDK 8.4 ...
createIfNotExists. @DoesServiceRequest public boolean createIfNotExists() throws StorageException. Creates the container if it does not exist. Returns: ...
Read more >
CloudBlobContainer (Microsoft Azure Libraries for Java)
createIfNotExists. @DoesServiceRequest public boolean createIfNotExists() throws StorageException. Creates the container if it does not exist. Returns: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found