2016-05-14 43 views
1

當我嘗試使用錯誤上傳文件時,Azure的

azure storage file upload foo.txt testshare testdir 

我得到

Error: If encoding is specified then the first argument must be a string 
    at new Buffer (buffer.js:106:13) 
    at Object.StorageUtil.getSpeedPrinter (/usr/local/Cellar/azure-cli/0.10.0/libexec/lib/node_modules/azure-cli/lib/util/storage.util._js:594:21) 
    at __$uploadFile (/usr/local/Cellar/azure-cli/0.10.0/libexec/lib/node_modules/azure-cli/lib/commands/storage/storage.file._js:1040:45) 
    at __$uploadFile (/usr/local/Cellar/azure-cli/0.10.0/libexec/lib/node_modules/azure-cli/lib/commands/storage/storage.file._js:1031:25) 
    at __$uploadFile (/usr/local/Cellar/azure-cli/0.10.0/libexec/lib/node_modules/azure-cli/lib/commands/storage/storage.file._js:1034:23) 
    at __tryCatch (/usr/local/Cellar/azure-cli/0.10.0/libexec/lib/node_modules/azure-cli/node_modules/streamline/lib/callbacks/runtime.js:150:4) 
    at ___ (/usr/local/Cellar/azure-cli/0.10.0/libexec/lib/node_modules/azure-cli/lib/commands/storage/storage.file._js:1010:19) 
    at ___ (/usr/local/Cellar/azure-cli/0.10.0/libexec/lib/node_modules/azure-cli/lib/commands/storage/storage.file._js:1002:27) 
    at __tryCatch (/usr/local/Cellar/azure-cli/0.10.0/libexec/lib/node_modules/azure-cli/node_modules/streamline/lib/callbacks/runtime.js:150:4) 
    at ___ (/usr/local/Cellar/azure-cli/0.10.0/libexec/lib/node_modules/azure-cli/lib/commands/storage/storage.file._js:1000:23) 
+0

我只是嘗試執行上述命令,我沒有遇到錯誤。 FWIW,我下載了最新版本的CLI工具,並在Windows 10 PC上運行此工具。你能說出你使用的操作系統是什麼(從你的其他問題看來,你使用的是Mac)和CLI工具的版本? –

+0

@GauravMantri:'azure -version'給出'0.10.0(node:6.1.0)'。 Mac OS X 10.11.4。 – orome

回答

1

由於這個錯誤是reported and should be in the repo by 05/04上傳文件到Azure中,你可以嘗試重新安裝它的4.3.3或者如果您仍然看到錯誤,請嘗試按上述鏈接中的描述進行開發。

+0

我會等待它,然後再試一次。 – orome

+0

@raxacoricofallapatorius個人,我會建議使用以前的版本 - 它看起來像它提供的功能,並工作穩定。但它確實是你的選擇:) –