Random 404 error on Azure Function

Anonymous
2021-05-13T01:49:32.693+00:00

Hi guys,

Does anyone of you have experience a 404 nginx issue from Azure Function (called made by ADF).

Error message is :
failed with status-'NotFound' and message - '<html> <head><title>404 Not Found</title></head> <body bgcolor="white"> <center><h1>404 Not Found</h1></center> <hr><center>nginx</center> </body> </html>

And I have a loop that is calling the same Function multiple time and occasionally it failed with the error above (majority is succeeding).
Also because the error arrived at NGINX level, no logs on the Azure Function

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,623 questions
{count} vote

3 answers

Sort by: Most helpful
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2021-05-28T07:19:01.843+00:00

    @Anonymous According to this comment, it is expected for the host to shut down on function timeouts but as covered in another issue, this isn't detected immediately, causing the 404.

    Even if you have the max timeout set to 10 minutes (assuming consumption tier), it could still be possible that one of our executions is taking longer. If this is the case, you should be able to confirm the same in the logs as mentioned in the linked issue.

    0 comments No comments

  2. Saikat Sengupta 1 Reputation point
    2021-08-18T17:09:22.497+00:00

    I am also facing this exact same issue when am calling an API endpoint to fetch data and write them in Data Lake. The processing takes around ~7 minutes, but the function throws error in Synapse pipeline within 4 minutes of execution. In some cases, the function completes the processing and write data into Data Lake while at other times it simply don't and the application monitor also don't track any log. As if the execution vanishes without writing any log. This is crazy!

    Did anyone find a solution to this?

    Btw, even the retry doesn't help @Anonymous

    124240-image.png

    0 comments No comments

  3. Tommy Ballo 1 Reputation point
    2021-11-30T13:21:30.867+00:00

    We solved this issue by upgrading to Function App version: 4 instead of running on the older V3.

    Maybe this will help if anyone has the same issue in the future.

    Tommy Ballo

    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.