{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/AzureSMR/issues/108","repository_url":"https://api.github.com/repos/Microsoft/AzureSMR","labels_url":"https://api.github.com/repos/Microsoft/AzureSMR/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/AzureSMR/issues/108/comments","events_url":"https://api.github.com/repos/Microsoft/AzureSMR/issues/108/events","html_url":"https://github.com/Microsoft/AzureSMR/issues/108","id":285303065,"number":108,"title":"Can't read/write to blob storage","user":{"login":"IyarLin","id":8618923,"avatar_url":"https://avatars3.githubusercontent.com/u/8618923?v=4","gravatar_id":"","url":"https://api.github.com/users/IyarLin","html_url":"https://github.com/IyarLin","followers_url":"https://api.github.com/users/IyarLin/followers","following_url":"https://api.github.com/users/IyarLin/following{/other_user}","gists_url":"https://api.github.com/users/IyarLin/gists{/gist_id}","starred_url":"https://api.github.com/users/IyarLin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IyarLin/subscriptions","organizations_url":"https://api.github.com/users/IyarLin/orgs","repos_url":"https://api.github.com/users/IyarLin/repos","events_url":"https://api.github.com/users/IyarLin/events{/privacy}","received_events_url":"https://api.github.com/users/IyarLin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-01-01T11:45:18Z","updated_at":"2018-03-01T20:32:59Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI've been able to interact with blob storage in the following ways: list all storage containers, list all storage blobs.\r\n\r\nWhen I try writing a new blob using the following command:\r\nazurePutBlob(sc, \r\n             storageAccount = \"csb1898e872be2fx4a7bxac8\", \r\n             container = \"reports\", \r\n             contents = \"HELLO\",\r\n             blob = \"Ad Group Performance Report2.csv\") \r\nI get the following error message:\r\n\"Opening and ending tag mismatch: meta line 5 and head\r\nOpening and ending tag mismatch: hr line 9 and body\r\nOpening and ending tag mismatch: body line 7 and html\r\nPremature end of data in tag head line 3\r\nPremature end of data in tag html line 2\"\r\n\r\nSame happens when I try reading one of the blobs using the following command:\r\nazureGetBlob(sc, storageAccount = \"csb1898e872be2fx4a7bxac8\", \r\n                        container = \"reports\",\r\n                        blob=\"Audience Performance Report\",\r\n                        type=\"text\")\r\nMany thanks\r\n\r\nIyar"},"comment":{"url":"https://api.github.com/repos/Microsoft/AzureSMR/issues/comments/369721730","html_url":"https://github.com/Microsoft/AzureSMR/issues/108#issuecomment-369721730","issue_url":"https://api.github.com/repos/Microsoft/AzureSMR/issues/108","id":369721730,"user":{"login":"brnleehng","id":5770004,"avatar_url":"https://avatars1.githubusercontent.com/u/5770004?v=4","gravatar_id":"","url":"https://api.github.com/users/brnleehng","html_url":"https://github.com/brnleehng","followers_url":"https://api.github.com/users/brnleehng/followers","following_url":"https://api.github.com/users/brnleehng/following{/other_user}","gists_url":"https://api.github.com/users/brnleehng/gists{/gist_id}","starred_url":"https://api.github.com/users/brnleehng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brnleehng/subscriptions","organizations_url":"https://api.github.com/users/brnleehng/orgs","repos_url":"https://api.github.com/users/brnleehng/repos","events_url":"https://api.github.com/users/brnleehng/events{/privacy}","received_events_url":"https://api.github.com/users/brnleehng/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T20:32:59Z","updated_at":"2018-03-01T20:32:59Z","author_association":"MEMBER","body":"Hi @IyarLin \r\n\r\nYou are getting errors on the parsing HTML because the storage response returned a bad 400 malformed request. The blob name 'Ad Group Performance Report' is not\r\nURL encoded. AzureSMR will need to URL encode the blob name so the user doesn't have to do it. \r\n \r\nResponse [https://**storageaccount**.blob.core.windows.net/**containerName**/**Ad Group Performance Report**]\r\n  Date: 2018-02-27 22:50\r\n  Status: 400\r\n  Content-Type: text/html; charset=us-ascii\r\n  Size: 311 B\r\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\"http://www.w3.org/TR/html4/strict.dtd\">\r\n<HTML><HEAD><TITLE>Bad Request</TITLE>\r\n<META HTTP-EQUIV=\"Content-Type\" Content=\"text/html; charset=us-ascii\"></HEAD>\r\n<BODY><h2>Bad Request</h2>\r\n<hr><p>HTTP Error 400. The request is badly formed.</p>\r\n</BODY></HTML>\r\n \r\nFix:\r\nad_group = azureGetBlob(sc, storageAccount = \"storageAccount\", \r\n                        container = \"container\",\r\n                        blob=utils::URLencode(blobName),\r\n                        type=\"text\")"}}
{"actor":{"display_login":"brnleehng"}}