azure-functions-core-tools icon indicating copy to clipboard operation
azure-functions-core-tools copied to clipboard

func host start stuck and not starting - connect ECONNREFUSED

Open clay4megtr opened this issue 1 year ago • 3 comments

Version

image

Description

image

Steps to reproduce

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

clay4megtr avatar Jul 29 '24 15:07 clay4megtr

it works after waiting for a long time...

clay4megtr avatar Jul 29 '24 15:07 clay4megtr

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

slgray avatar Aug 13 '24 12:08 slgray

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.

slgray avatar Aug 13 '24 12:08 slgray

Closing as duplicate - https://github.com/Azure/azure-functions-core-tools/issues/3821

surgupta-msft avatar Nov 01 '24 00:11 surgupta-msft