azure-webjobs-sdk
azure-webjobs-sdk copied to clipboard
Error when no internet connectivity is unhelpful
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
Going to make a P1 cause it's supportability, but may be demoted to P2
We decided to lower the priority after discussion with the team.
For this work, let's take an approach that provides a helpful message when no internet connectivity is available or when it is lost.
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