Azure / azure-functions-core-tools

Command line tools for Azure Functions
MIT License
1.29k stars 429 forks source link

func host start stuck and not starting - connect ECONNREFUSED #3778

Open clay4444 opened 1 month ago

clay4444 commented 1 month ago

Version

image

Description

image

Steps to reproduce

just run . .venv/bin/activate && func host start

clay4444 commented 1 month ago

it works after waiting for a long time...

slgray commented 1 month ago

image same here, just create a demo app and run, it sucks forever.

slgray commented 1 month ago

It seems the core tool is trying to connect to functionscdn.azureedge.net at start, when I disconnect to network, it get following error.

[2024-08-13T12:39:50.541Z] Error building configuration in an external startup class. [2024-08-13T12:39:50.544Z] Error building configuration in an external startup class. System.Net.Http: No such host is known. (functionscdn.azureedge.net:443). System.Net.Sockets: No such host is known. [2024-08-13T12:39:50.552Z] A host error has occurred during startup operation '572f2476-77d1-4fa4-936b-06e6cb401f98'. [2024-08-13T12:39:50.553Z] Microsoft.Azure.WebJobs.Script: Error building configuration in an external startup class. System.Net.Http: No such host is known. (functionscdn.azureedge.net:443). System.Net.Sockets: No such host is known. Value cannot be null. (Parameter 'provider') I work around it by set up a proxy, I think print en error message if it fail to connect to functionscdn.azureedge.net is a good idea.