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

Running local functions fails without internet connection

Open milesfrain opened this issue 5 years ago • 12 comments

I cannot run local Azure functions while offline.

Initial setup with internet connection

func init myapp --worker-runtime node --language javascript
cd myapp
npm install
func new --name HttpExample --template "HTTP trigger"
func host start

The above commands work fine. But then if I go offline and re-run func host start, I encounter this error:

Looking for extension bundle Microsoft.Azure.Functions.ExtensionBundle at /tmp/Functions/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle
[6/23/20 6:12:26 PM] Found a matching extension bundle at /tmp/Functions/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/1.1.1
[6/23/20 6:12:26 PM] Fetching information on versions of extension bundle Microsoft.Azure.Functions.ExtensionBundle available on https://functionscdn.azureedge.net/public/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/index.json
[6/23/20 6:12:26 PM] A host error has occurred during startup operation 'fd540883-3fd6-457a-a864-29232c8e703f'.
[6/23/20 6:12:26 PM] System.Net.Http: No such device or address. System.Private.CoreLib: No such device or address.
Value cannot be null.
Parameter name: provider
Application is shutting down...

Version Info

$ func --version 
2.7.2508
$ node --version
v10.21.0
$ lsb_release -d
Description:    Ubuntu 20.04 LTS

milesfrain avatar Jun 23 '20 18:06 milesfrain

@soninaren Do you think we can skip this check if there's no internet connection?

anthonychu avatar Jun 30 '20 18:06 anthonychu

Yes, we should skip bundle load check when there is no internet.

soninaren avatar Jul 10 '20 05:07 soninaren

Yes, we should skip bundle load check when there is no internet.

When this change is available?

frarteaga avatar Nov 26 '20 17:11 frarteaga

Is this being worked on?

fsudderthrenfroe avatar Dec 10 '21 15:12 fsudderthrenfroe

Any update on this?

akibrk avatar May 25 '22 10:05 akibrk