Node.js 在MAC上本地运行计时器触发的azure功能(docker内部)
我试图在docker内部的MAC上本地运行计时器触发的nodejs azure函数,但出现以下错误:Node.js 在MAC上本地运行计时器触发的azure功能(docker内部),node.js,macos,timer,azure-functions,Node.js,Macos,Timer,Azure Functions,我试图在docker内部的MAC上本地运行计时器触发的nodejs azure函数,但出现以下错误: The listener for function 'Functions.MyTimerFunction' was unable to start. Microsoft.WindowsAzure.Storage: Connection refused. System.Net.Http: Connection refused. System.Private.CoreLib: Connection
The listener for function 'Functions.MyTimerFunction' was unable to start. Microsoft.WindowsAzure.Storage: Connection refused. System.Net.Http: Connection refused. System.Private.CoreLib: Connection refused.
System.Private.CoreLib: Exception while executing function: Functions.DomainVerifier. Microsoft.Azure.WebJobs.Host: Exception binding parameter 'myTimer'. Microsoft.WindowsAzure.Storage: Connection refused. System.Net.Http: Connection refused. System.Private.CoreLib: Connection refused.
当我试图使用HTTP post触发函数时,我得到以下错误:
The listener for function 'Functions.MyTimerFunction' was unable to start. Microsoft.WindowsAzure.Storage: Connection refused. System.Net.Http: Connection refused. System.Private.CoreLib: Connection refused.
System.Private.CoreLib: Exception while executing function: Functions.DomainVerifier. Microsoft.Azure.WebJobs.Host: Exception binding parameter 'myTimer'. Microsoft.WindowsAzure.Storage: Connection refused. System.Net.Http: Connection refused. System.Private.CoreLib: Connection refused.
这在我的local.settings.json文件中:
非常感谢您的帮助。我可以重现此错误,我使用本地windows pc进行测试。当您使用UseDevelopmentStorage=true且Storage Emulator未启动时,会出现此错误 因此,请使用存储连接设置AzureWebJobsStorage,或在本地环境中启动storage Emulator。启动存储仿真器后,它将工作
我可以复制此错误,我使用本地windows pc进行测试。当您使用UseDevelopmentStorage=true且Storage Emulator未启动时,会出现此错误 因此,请使用存储连接设置AzureWebJobsStorage,或在本地环境中启动storage Emulator。启动存储仿真器后,它将工作
我想问题是AzureWebJobsStorage Emulator不适用于MAC。是的,目前没有适用于MAC的存储Emulator,但是有开源替代方案:。@mehran,如果这对您有帮助,请接受它作为答案。Azurite迁移到了新位置:我想问题是AzureWebJobsStorage Emulator不适用于MAC。是的,目前没有适用于MAC的存储Emulator,但是有开源替代方案:。@mehran,如果这对您有帮助,请接受它作为答案。Azurite迁移到了新位置: