Function timeouts related to GET http://127.0.0.1:41888/MSI/token

Raiford, Michael 11 Reputation points
2021-09-24T15:44:17.363+00:00

I've noticed some queue items getting dropped in the poison queue, and after investigating through App Insights, the following pattern shows repeatedly:

135123-tempsnip.png

I've searched around and don't see any answers as to why this is happening or what could be causing the delay. Does anyone have any ideas?

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,098 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,201 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Pierre-Luc Giguere 1,076 Reputation points
    2021-09-24T18:12:45.343+00:00

    Hi Michael,

    Welcome to the community.

    You get a 401 from the Key Vault in your screenshot.

    401 means that the request is unauthenticated for Key Vault.

    A request is authenticated if:

    • The key vault knows the identity of the caller; and
    • The caller is allowed to try to access Key Vault resources.

    source: https://learn.microsoft.com/en-us/azure/key-vault/general/rest-error-codes

    The function then times out after 5 minutes, which is expected behavior:

    source : https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#timeout

    Check the Key Vault logs as well as the function code to further diagnose.


  2. Pramod Valavala 20,516 Reputation points Microsoft Employee
    2021-10-01T09:48:06.487+00:00

    @Raiford, Michael The FunctionTimeoutException in your logs is about your function hitting the function app timeout of 5 min. You could try configuring a longer timeout (max of 10 minutes for the consumption tier).