I try to make a time-triggered function in Visual Studio 2022, while doing this at the debugging the following error occurs:
[2022-06-27T07:47:03.127Z] The listener for function 'Function1' was unable to start.
[2022-06-27T07:47:03.129Z] The listener for function 'Function1' was unable to start. Azure.Storage.Blobs: Service request failed.
[2022-06-27T07:47:03.129Z] Status: 407 (Proxy Authentication Required)
My local.settings.json looks the following:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet"
}
}
I also tried to add our local company Proxy to this setting bs setting the values of HTTP_PROXY and HTTPS_PROXY but they are skipped since already configured in Environment Variables:
Skipping 'http_proxy' from local settings as it's already defined in current environment variables.
Skipping 'https_proxy' from local settings as it's already defined in current environment variables.
Skipping 'HTTP_PROXY' from local settings as it's already defined in current environment variables.
Skipping 'HTTPS_PROXY' from local settings as it's already defined in current environment variables.
Skipping 'NO_PROXY' from local settings as it's already defined in current environment variables.
Also Azurite is up and running on Ports 10000-10002 as the Console says:
FunctionApp1: Azurite Blob service is starting at http://127.0.0.1:10000
FunctionApp1: Azurite Blob service is successfully listening at http://127.0.0.1:10000
FunctionApp1: Azurite Queue service is starting at http://127.0.0.1:10001
FunctionApp1: Azurite Queue service is successfully listening at http://127.0.0.1:10001
FunctionApp1: Azurite Table service is starting at http://127.0.0.1:10002
FunctionApp1: Azurite Table service is successfully listening at http://127.0.0.1:10002
Do you have any idea why this could happen, or what I should configure?
Looking at the message from the console, it appears that the http_proxy variable is already set in the environment variables in windows. Could you please check the path/url of the http_proxy and other variables in the environment variables window and make sure they are correct?
Access env variable in windows : https://www.computerhope.com/issues/ch000549.htm
Please let me know the outcome. Thanks
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With