azure-functions-core-tools
azure-functions-core-tools copied to clipboard
Running local functions fails without internet connection
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
@soninaren Do you think we can skip this check if there's no internet connection?
Yes, we should skip bundle load check when there is no internet.
Yes, we should skip bundle load check when there is no internet.
When this change is available?
Is this being worked on?
Any update on this?