Timer Trigger Azure function failed to to update the timer trigger status when function executed successfully

Yanyu Chen 0 Reputation points
2023-09-21T11:27:59.26+00:00
Found Python version 3.10.8 (py).

Azure Functions Core Tools
Core Tools Version:       4.0.5198 Commit hash: N/A  (64-bit)
Function Runtime Version: 4.21.1.20667


Functions:

        fastapi-dma-to-logger-session: timerTrigger

For detailed output, run func with --verbose flag.
[2023-09-21T10:30:08.042Z] Worker process started and initialized.
[2023-09-21T10:30:10.338Z] Host lock lease acquired by instance ID '000000000000000000000000C7A24976'.
[2023-09-21T10:30:35.287Z] Function 'Host.Functions.fastapi-dma-to-logger-session' failed to update the timer trigger status.
[2023-09-21T10:30:35.289Z] Azure.Storage.Blobs: Service request failed.
[2023-09-21T10:30:35.290Z] Status: 500 (Internal Server Error)
[2023-09-21T10:30:35.291Z] 
[2023-09-21T10:30:35.292Z] Headers:
[2023-09-21T10:30:35.293Z] Server: Azurite-Blob/3.26.0
[2023-09-21T10:30:35.294Z] Date: Thu, 21 Sep 2023 10:30:35 GMT
[2023-09-21T10:30:35.295Z] Connection: keep-alive
[2023-09-21T10:30:35.295Z] Keep-Alive: REDACTED
[2023-09-21T10:30:35.296Z] Content-Length: 0
[2023-09-21T10:30:35.298Z] .
[2023-09-21T10:35:00.050Z] Executing 'Functions.fastapi-dma-to-logger-session' (Reason='Timer fired at 2023-09-21T11:35:00.0199560+01:00', Id=b159c2a3-9f07-45b6-a1a1-5ec805c5cf60)
[2023-09-21T10:35:12.291Z] Python timer trigger function ran at 2023-09-21T10:35:00.101098+00:00
[2023-09-21T10:35:12.291Z] Data successfully uploaded
[2023-09-21T10:35:12.329Z] Executed 'Functions.fastapi-dma-to-logger-session' (Succeeded, Id=b159c2a3-9f07-45b6-a1a1-5ec805c5cf60, Duration=12295ms)
[2023-09-21T10:35:41.728Z] Function 'Host.Functions.fastapi-dma-to-logger-session' failed to update the timer trigger status.
[2023-09-21T10:35:41.729Z] Azure.Storage.Blobs: Service request failed.
[2023-09-21T10:35:41.731Z] Status: 500 (Internal Server Error)
[2023-09-21T10:35:41.732Z] 
[2023-09-21T10:35:41.732Z] Headers:
[2023-09-21T10:35:41.733Z] Server: Azurite-Blob/3.26.0
[2023-09-21T10:35:41.734Z] Date: Thu, 21 Sep 2023 10:35:41 GMT
[2023-09-21T10:35:41.734Z] Connection: keep-alive
[2023-09-21T10:35:41.735Z] Keep-Alive: REDACTED
[2023-09-21T10:35:41.736Z] Content-Length: 0
[2023-09-21T10:35:41.737Z] .


this is the log info, I run my timer trigger function locally on VS code, it executed successfully but it seems failed and gives me 500 status.

do you know why please?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,887 questions
{count} votes

1 answer

Sort by: Most helpful
  1. navba-MSFT 23,620 Reputation points Microsoft Employee
    2023-09-22T15:32:27.09+00:00

    @Yanyu Chen I'm glad to see you were able to resolve your issue.

    Thanks for posting your solution so that others experiencing the same thing can easily reference this. Since the Microsoft Q&A community has a policy that the question author cannot accept their own answer, they can only accept answers by others, I'll repost your solution in case you'd like to Accept the answer.

    Issue:
    You are facing an issue with your Timer Triggered Azure function, which is failing to update the timer trigger status and you get the error Azure.Storage.Blobs: Service request failed with HTTP error 500.

    Resolution:
    You deployed your function to the function app directly, it works fine on the cloud. So probably the issue could be due to the VS code version or your local system.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.