Azure / azure-storage-cpplite

Lite version of C++ Client Library for Microsoft Azure Storage
MIT License
25 stars 43 forks source link

Crash occurs with container_exists & get_blob_property with invalid credentails #65

Closed prasanthrgb closed 4 years ago

prasanthrgb commented 4 years ago

Hello All,

I am just trying to create IoT application with Azure. I am using Blob storage sdk lite and facing some issues as below: The code at line 4 and 5 sometimes get into infinite loop or crashes (some times) If invalid credential is passed to account.

  1. auto bC = std::make_shared(account, 10);
  2. bool exists = true;
  3. blob_client_wrapper bc(bC);
  4. exists = bc.container_exists(strContainerName);
  5. get_blob_property

Is there any way to check if valid or any fix available for this?

Jinming-Hu commented 4 years ago

@prasanthrgb Please change the value here from 26 to smaller value like 3 and try again. Thanks

prasanthrgb commented 4 years ago

Thank you. Your suggestion works so that API does not hangs.