App Service Editor 404 & host "functionTimeout"

Dan Hickman 21 Reputation points
2022-02-14T13:02:59.967+00:00

Hello,
I have a timer function that will timeout at 30 seconds. I did some searching and found out that I can add "functionTimeout" to the hosts file of the function app. Prior to updatinghte host file, I was able to use "App Service Editor (preview)" within Azure Portal to view the host file.

I updated the host file to look like this:

here is what my host file looks like now:
{
"version": "2.0",
"functionTimeout": "00:10:00",
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Request"
}
}
}
}

After updating, whenever I try to use "App Service Editor (preview)" within Azure Portal, I now receive a 404 page.

Also, my function is still timing out at 30 seconds. I am not sure how I can confirm the change to to the host file. Any advice or thoughts?

Thanks,
Dan Hickman

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

1 answer

Sort by: Most helpful
  1. Ryan Hill 27,696 Reputation points Microsoft Employee
    2022-02-16T18:36:35.263+00:00

    @Dan Hickman , this sounds like a transient error to me. See if you can still access your Kudu console via https://{your-function-app}.scm/azurewebsites.net?

    I am not sure how I can confirm the change to the host file.

    On your Debug kudu console (https://{your-function-app}.scm/azurewebsites.net/DebugConsole/?shell=powershell), you can navigate to C:\home\site\wwwroot and the host.json file is there.

    175101-image.png

    Any advice or thoughts?

    You could have a downstream dependency that has shorter timeout, e.g. a database connection. You can leverage Application Insights Dashboard to see what dependencies would be causing the invocation to timeout. Feel free to comment any logging snippets down below if you're still stuck.

    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.