{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2875","repository_url":"https://api.github.com/repos/Azure/azure-xplat-cli","labels_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2875/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2875/comments","events_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2875/events","html_url":"https://github.com/Azure/azure-xplat-cli/issues/2875","id":154548163,"number":2875,"title":"Storage blob upload error","user":{"login":"techgeek03","id":5710819,"avatar_url":"https://avatars.githubusercontent.com/u/5710819?v=3","gravatar_id":"","url":"https://api.github.com/users/techgeek03","html_url":"https://github.com/techgeek03","followers_url":"https://api.github.com/users/techgeek03/followers","following_url":"https://api.github.com/users/techgeek03/following{/other_user}","gists_url":"https://api.github.com/users/techgeek03/gists{/gist_id}","starred_url":"https://api.github.com/users/techgeek03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techgeek03/subscriptions","organizations_url":"https://api.github.com/users/techgeek03/orgs","repos_url":"https://api.github.com/users/techgeek03/repos","events_url":"https://api.github.com/users/techgeek03/events{/privacy}","received_events_url":"https://api.github.com/users/techgeek03/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-12T18:19:39Z","updated_at":"2016-05-12T18:30:58Z","closed_at":null,"body":"CLI Version: **0.10.0**\r\nOS Type: Linux (Ubuntu)\r\nInstallation via:  npm\r\nnode version: 6.1.0\r\nnpm version: 3.8.6\r\n\r\nMode: **ARM**\r\n\r\nDescription:\r\nazure storage blob upload 'test.txt' container blob \r\nthrows error \"If encoding is specified then the first argument must be a string\" on Ubuntu with node 6.1.0 and npm 3.8.6\r\n\r\nSteps to reproduce:\r\n1) Run `azure storage blob upload 'test.txt' container blob`\r\n\r\nError stack trace:\r\n\r\nError: If encoding is specified then the first argument must be a string\r\n    at new Buffer (buffer.js:106:13)\r\n    at Object.StorageUtil.getSpeedPrinter (/usr/lib/node_modules/azure-cli/lib/util/storage.util.js:748:21)\r\n    at __$uploadAzureBlob (/usr/lib/node_modules/azure-cli/lib/commands/storage/storage.blob.js:902:41)\r\n    at __$uploadAzureBlob (/usr/lib/node_modules/azure-cli/lib/commands/storage/storage.blob.js:891:384)\r\n    at __$uploadAzureBlob (/usr/lib/node_modules/azure-cli/lib/commands/storage/storage.blob.js:891:400)\r\n    at __tryCatch (/usr/lib/node_modules/azure-cli/node_modules/streamline/lib/callbacks/runtime.js:150:4)\r\n    at ___ (/usr/lib/node_modules/azure-cli/lib/commands/storage/storage.blob.js:883:190)\r\n    at ___ (/usr/lib/node_modules/azure-cli/lib/commands/storage/storage.blob.js:883:123)\r\n    at __tryCatch (/usr/lib/node_modules/azure-cli/node_modules/streamline/lib/callbacks/runtime.js:150:4)\r\n    at ___ (/usr/lib/node_modules/azure-cli/lib/commands/storage/storage.blob.js:883:78)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/comments/218845360","html_url":"https://github.com/Azure/azure-xplat-cli/issues/2875#issuecomment-218845360","issue_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2875","id":218845360,"user":{"login":"techgeek03","id":5710819,"avatar_url":"https://avatars.githubusercontent.com/u/5710819?v=3","gravatar_id":"","url":"https://api.github.com/users/techgeek03","html_url":"https://github.com/techgeek03","followers_url":"https://api.github.com/users/techgeek03/followers","following_url":"https://api.github.com/users/techgeek03/following{/other_user}","gists_url":"https://api.github.com/users/techgeek03/gists{/gist_id}","starred_url":"https://api.github.com/users/techgeek03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techgeek03/subscriptions","organizations_url":"https://api.github.com/users/techgeek03/orgs","repos_url":"https://api.github.com/users/techgeek03/repos","events_url":"https://api.github.com/users/techgeek03/events{/privacy}","received_events_url":"https://api.github.com/users/techgeek03/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T18:30:58Z","updated_at":"2016-05-12T18:30:58Z","body":"Editing /usr/lib/node_modules/azure-cli/lib/util/storage.util.js line 748 by deleting the \"utf8\" parameter solved the problem. "}}