Hello @Connor Hazen , Thank you for providing the details above. While looking at the backend, I think the issue behind intermittent 404 errors might be related to the synchronous implementation of the code. As Python is a single-threaded runtime, a host instance for Python can process only one function invocation at a time by default. For applications that process a large number of I/O events and/or is I/O bound, you can improve performance significantly by running functions asynchronously. It will be helpful you could go through this Async section of the Scale and Performance documentation for Python Function Apps and see if making the code Async helps in getting rid of the issue.
Let me know if there are any additional concerns. Thank you!
ADF calling Azure Function: '404 not found' exception once out of every 10 runs (after 2 seconds)
I am, seemingly at random, receiving 404 not found errors on azure function calls from within ADF pipeline. They occur once every 10 runs, roughly, and come in two forms:
The first has this HTML as its error:
Call to provided Azure function 'Parse' 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> '.
The second is:
Call to provided Azure function 'Parse' failed with status-'NotFound' and message - 'Invoking Azure function failed with HttpStatusCode - NotFound.'.
These are interspersed within successful runs and rerunning the pipeline with the same triggered file (this a blob upload trigger) will run with no problems suggesting that it is not an input issue. Furthermore, the fact that they occur 2 seconds means it is not a timeout issue? Any thoughts?
Azure Functions
Azure Data Factory
5 answers
Sort by: Most helpful
-
ChaitanyaNaykodi-MSFT 27,471 Reputation points Microsoft Employee Moderator
2021-05-27T22:36:43.793+00:00 -
Connor Hazen 1 Reputation point
2021-06-15T02:05:20.743+00:00 I solved this problem, I believe, in a roundabout manner. Still not sure what was causing it. However, I moved all of my code to a new function, meaning I made a new function app, made a new function in visual studio code, and then copied over the scripts(I left the new .vscode directory etc. - essentially everything expect the python files I had written was replaced by the new function I had made).
UPDATE: spoke too soon. still experiencing issues.
-
Mitchell Bennett 1 Reputation point
2021-06-24T20:37:45.173+00:00 I have created a support ticket for this issue and have been told that the problem has been identified by Microsoft engineers and they are working on an "enhancement" for it.
In the mean time what I have done to work around this issue is to set the maximum number of retry attempts and the retry interval on each Azure Function activity in my pipeline.
Hopefully this helps and the issue gets resolved soon!
-
Christian Schreuder 11 Reputation points
2021-06-25T08:17:30.667+00:00 Hi, if you restart your Function App does the error go away for a few hours before it comes back?
-
dthunn 1 Reputation point
2021-07-23T15:51:48.877+00:00 At my work we are experiencing the exact same issue, about 1 / 10 requests results in a 404, there is no clear way to fix this problem.