I have been developing and debugging my Azure Functions in Visual Studio 2017 for a few months with no problems but am now running into errors.
Every time I run my function app I get the following dialogue, which sometimes leads to my function trying to execute and other time it doesn't.
If the process gets passed the above issue I get the following errors which kill the execution of my function.
Has anyone else experienced these issues? Thanks.
The prompt is to inform you that VS is downloading the function cli of latest version, you can check cli output, you may see
Starting Host (HostId=someId, InstanceId=someId, Version=2.0.11960.0,...)
The host version 2.0.11960( 2.4.0 is used by VS feed) represents VS consumes the latest version. Usually new release does have some breaking changes but this time as you mentioned it does work on Azure where the host version is 2.0.11961(this minor difference should have no influence on your code).
It seems your code operates on Azure File Share and I see error message
Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature
Storage SDK operations are transformed into REST http requests. This error message usually is sent back by Storage when it fails to authenticate our request.
If you have verified storage connection string(especially account key) is correct, check time settings of local pc. The REST request is sent with a x-ms-date header and the value is captured from your local pc, if it's 15m+ older than the standard time, we will get the authentication error.