You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// import libraries, eg:import{app}from'@azure/functions';importaxiosfrom'axios';// add some helper functions hereapp.http('MyPOSTHttpTriggerFunction',{methods: ['POST'],authLevel: 'function',handler: async(request,context)=>{// get a token to make graph api requests // call some helper functions// return a response }
I am using the Azure Functions v4 programming model, Node.js and ES6 style module syntax etc.
The text was updated successfully, but these errors were encountered:
It is very difficult to reproduce the issue. It appears to be related to specific ISP as you mentioned that you don't see the issue after connecting to the VPN.
Steps to reproduce:
func start
Expected Behaviour:
Local function endpoints start quickly.
Calling a function endpoint runs my function code.
Actual Behaviour:
Local function endpoints start slowly.
Calling a function endpoint returns this error:
Workaround:
If I connect to a VPN and run
func start
, it starts quickly and calling the local function endpoints returns no errors.I posted on the msal-node repo, as I thought it might be related to that library in particular:
AzureAD/microsoft-authentication-library-for-js#6684
When I remove the code that requests a token, i get a successful response.
As soon as I add the token request back, I get the error.
But perhaps it is an issue with
azure-functions-core-tools
.Environment:
package.json:
host.json:
Node.js:
My function files generally have this structure:
I am using the Azure Functions v4 programming model, Node.js and ES6 style module syntax etc.
The text was updated successfully, but these errors were encountered: