使用Azure node.js SDK的createContainerIfNotExist方法进行AuthenticationFailed

我正尝试使用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 blobstorage
  • 操作系统:山狮和Windows 8
  • 节点版本:0.10.0
  • Azure NodeJS SDK版本:0.6.10

更新 – 3/15/13 1:23 pm

出现azure nodejs sdk 0.6.10和0.10节点的问题。 https://github.com/WindowsAzure/azure-sdk-for-node/issues/645

       

网上收集的解决方案 "使用Azure node.js SDK的createContainerIfNotExist方法进行AuthenticationFailed"