将文件上载到Azure时出错

时间:2016-05-14 13:36:39

标签: azure

当我尝试使用

将文件上传到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)

1 个答案:

答案 0 :(得分:1)

由于该错误是reported and should be in the repo by 05/04,您可以尝试为4.3.3重新安装它,或者如果您仍然看到错误,请尝试使用上面链接中所述的devbranch。