{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-storage-cpp/issues/81","repository_url":"https://api.github.com/repos/Azure/azure-storage-cpp","labels_url":"https://api.github.com/repos/Azure/azure-storage-cpp/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-storage-cpp/issues/81/comments","events_url":"https://api.github.com/repos/Azure/azure-storage-cpp/issues/81/events","html_url":"https://github.com/Azure/azure-storage-cpp/issues/81","id":163090600,"number":81,"title":"container.create_if_not_exists() is exceptioned,Error: WinHttpSendRequest: 12002: 鎿嶄綔瓒呮椂","user":{"login":"pily1","id":20216269,"avatar_url":"https://avatars.githubusercontent.com/u/20216269?v=3","gravatar_id":"","url":"https://api.github.com/users/pily1","html_url":"https://github.com/pily1","followers_url":"https://api.github.com/users/pily1/followers","following_url":"https://api.github.com/users/pily1/following{/other_user}","gists_url":"https://api.github.com/users/pily1/gists{/gist_id}","starred_url":"https://api.github.com/users/pily1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pily1/subscriptions","organizations_url":"https://api.github.com/users/pily1/orgs","repos_url":"https://api.github.com/users/pily1/repos","events_url":"https://api.github.com/users/pily1/events{/privacy}","received_events_url":"https://api.github.com/users/pily1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-30T06:29:47Z","updated_at":"2016-07-01T03:27:16Z","closed_at":null,"body":"Hi all:\r\n    I use Microsoft.WindowsAzure.Storage.BlobsGettingStarted.v120 Samples,the code is \r\n      void blobs_getting_started_sample()\r\n    {\r\n        try\r\n        {\r\n            // Initialize storage account\r\n            azure::storage::cloud_storage_account storage_account = azure::storage::cloud_storage_account::parse(storage_connection_string);\r\n\r\n            // Create a blob container\r\n            azure::storage::cloud_blob_client blob_client = storage_account.create_cloud_blob_client();\r\n            //azure::storage::cloud_blob_container container = blob_client.get_container_reference(U(\"my-sample-container\"));\t\t\t\r\n\t\t\tazure::storage::cloud_blob_container container = blob_client.get_container_reference(U(\"test-public-blob\"));\r\n           \r\n            // Return value is true if the container did not exist and was successfully created.\r\n            bool bok = container.create_if_not_exists();\r\n           // Make the blob container publicly accessible\r\n            azure::storage::blob_container_permissions permissions;\r\n            permissions.set_public_access(azure::storage::blob_container_public_access_type::blob);\r\n            container.upload_permissions(permissions);\r\n            .....\r\n             catch (const azure::storage::storage_exception& e)\r\n        {\r\n            ucout << U(\"Error: \") << e.what() << std::endl;\r\n\r\n            azure::storage::request_result result = e.result();\r\n            azure::storage::storage_extended_error extended_error = result.extended_error();\r\n            if (!extended_error.message().empty())\r\n            {\r\n                ucout << extended_error.message() << std::endl;\r\n            }\r\n        }\r\n\r\n\r\n          when the code run \"container.create_if_not_exists();\",the Error is \"Error: WinHttpSendRequest: 12002: 鎿嶄綔瓒呮椂\",my computer is win8 x64,"},"comment":{"url":"https://api.github.com/repos/Azure/azure-storage-cpp/issues/comments/229845633","html_url":"https://github.com/Azure/azure-storage-cpp/issues/81#issuecomment-229845633","issue_url":"https://api.github.com/repos/Azure/azure-storage-cpp/issues/81","id":229845633,"user":{"login":"hanzhumsft","id":9128216,"avatar_url":"https://avatars.githubusercontent.com/u/9128216?v=3","gravatar_id":"","url":"https://api.github.com/users/hanzhumsft","html_url":"https://github.com/hanzhumsft","followers_url":"https://api.github.com/users/hanzhumsft/followers","following_url":"https://api.github.com/users/hanzhumsft/following{/other_user}","gists_url":"https://api.github.com/users/hanzhumsft/gists{/gist_id}","starred_url":"https://api.github.com/users/hanzhumsft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanzhumsft/subscriptions","organizations_url":"https://api.github.com/users/hanzhumsft/orgs","repos_url":"https://api.github.com/users/hanzhumsft/repos","events_url":"https://api.github.com/users/hanzhumsft/events{/privacy}","received_events_url":"https://api.github.com/users/hanzhumsft/received_events","type":"User","site_admin":false},"created_at":"2016-07-01T03:27:16Z","updated_at":"2016-07-01T03:27:16Z","body":"Hi @pily1 ,\r\n\r\nThis looks an WinHTTP error, 12002 means TIMEOUT.  Can you please check whether you have the right account name and key in `SamplesCommon/samples_common.h` and the network connection to azure storage services?"}}
{"actor":{"display_login":"hanzhumsft"}}