我正在尝试使用Azure node.js sdk连接到博客存储服务。这就是我所说的:
var blobService = azure.createBlobService(nconf.get("BlobStorage.account"),
nconf.get("BlobStorage.key"));
blobService.createContainerIfNotExist(
"test1"
, {publicAccessLevel : 'blob'}
, function(error){
if(error){
console.log(error);
}
});
这是我得到的错误:
code: 'AuthenticationFailed',
message: 'Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.\nRequestId:7ff326e7-2bc6-47ad-898e-2235dc26c03d\nTime:2013-03-15T19:45:25.0167404Z',
authenticationerrordetail: 'The MAC signature found in the HTTP request \'xg3cY11YCPo3mYPxDF5UV7cTPOErleERogcozwGVm6s=\' is not the same as any computed signature. Server used following string to sign: \'PUT\n\n\n0\n\n\n\n\n\n\n\n\nx-ms-blob-public-access:blob\nx-ms-date:Fri, 15 Mar 2013 19:45:25 GMT\nx-ms-version:2011-08-18\n/[containername removed for post]/test1%3Frestype=container\'.'
有人能指出我正确的方向来解决这个问题吗?
其他详情:
出现azure nodejs sdk 0.6.10和节点0.10存在问题。 https://github.com/WindowsAzure/azure-sdk-for-node/issues/645
答案 0 :(得分:1)
FYI Azure NodeJS SDK目前支持nodeJS高达0.8.x.
答案 1 :(得分:0)
@ user1144313我们知道它不起作用并且正在调查它。 http://codebetter.com/glennblock/2013/03/18/node-0-10-compat-issues-with-the-azure-sdk-and-cli/
现在请使用节点0.8.x.只要我们有修复程序,我们就会发布更新版本。您还可以在https://github.com/windowsazure/azure-sdk-for-node和https://github.com/windowsazure/azure-sdk-tools查看wiki,我们会在发布更新后立即更新。
很抱歉给您带来不便。