azure-webjobs-sdk icon indicating copy to clipboard operation
azure-webjobs-sdk copied to clipboard

Error when no internet connectivity is unhelpful

Open jeffhollan opened this issue 4 years ago • 4 comments

If you try to run a function app locally with the Azure Storage extension and you don't have internet connectivity, it throws some error like this

[11/18/2019 5:09:18 PM] A host error has occurred [11/18/2019 5:09:18 PM] System.Net.Http: nodename nor servname provided, or not known. System.Private.CoreLib: nodename nor servname provided, or not known. Value cannot be null. (Parameter 'provider')

Ideally if there was an issue connecting to the storage account (or any other trigger, I assume this issue spans multiple triggers) it would be a much more helpful error like:

Error trying to connect to the storage account. Please check the connection string and connectivity

jeffhollan avatar Nov 18 '19 17:11 jeffhollan

Going to make a P1 cause it's supportability, but may be demoted to P2

jeffhollan avatar Nov 18 '19 17:11 jeffhollan

We decided to lower the priority after discussion with the team.

kulkarnisonia16 avatar Dec 31 '19 19:12 kulkarnisonia16

For this work, let's take an approach that provides a helpful message when no internet connectivity is available or when it is lost.

fabiocav avatar Jun 24 '20 20:06 fabiocav

It would be awesome if this could be looked at. It's quite hard to diagnose this issue - if this issue hadn't been opened I'd still be wondering

johnnyreilly avatar Feb 10 '22 19:02 johnnyreilly