0

我正在运行一个 azure 存储程序。

https://www.windowsazure.com/en-us/develop/nodejs/tutorials/web-site-with-storage/

当我运行应用程序时,我收到一个错误:

    throw err;
          ^

错误:getaddrinfo ENOENT at errnoException (dns.js:31:11) at Object.onanswer [as oncomplete] (dns.js:140:16)

我已经编辑了程序以使用具有以下凭据的模拟器: accountName = 'azure.ServiceClient.DEVSTORE_STORAGE_ACCOUNT' , accountKey = 'azure.ServiceClient.DEVSTORE_STORAGE_ACCESS_KEY';

/**

你能告诉我问题是什么以及如何解决这个问题吗

@smarx 帮助我确定这是帐户设置的问题。

你能告诉我如何解决这个问题吗

4

1 回答 1

0

在对本地模拟器使用存储时,我遇到了类似的问题。不确定这是否有帮助,但是当我指定本地表服务端点时它起作用了。代码看起来像

var client = azure.createTableService(azure.ServiceClient.DEVSTORE_STORAGE_ACCOUNT, azure.ServiceClient.DEVSTORE_STORAGE_ACCESS_KEY, azure.ServiceClient.DEVSTORE_TABLE_HOST);

于 2012-11-12T02:29:59.160 回答