I am trying to run a timer triggered nodejs azure function locally on MAC (inside docker) but getting the following error:
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.
And when I am trying to trigger the function using HTTP post I get the following error:
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.
this is in my local.settings.json
file:
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"AzureWebJobsSecretStorageType": "files",
Any help is appreciated.
I can reproduce this error, I test with local windows pc. You get this error when you use UseDevelopmentStorage=true
and Storage Emulator
is not start.
So set the AzureWebJobsStorage
with your storage connection or start Storage Emulator
on your local environment. After start the Storage Emulator it will work .