azure-functions-host icon indicating copy to clipboard operation
azure-functions-host copied to clipboard

Azure Functions: Function crashes AppService (We are unable to reach your function app (Not Found). Please try again later)

Open lucabol opened this issue 10 years ago • 6 comments

It seems that every time dotnet restore fails, the whole appservice crashes.

Repro steps

  1. Open the editor for https://ms.portal.azure.com/#blade/WebsitesExtension/FunctionsIFrameBlade/id/%2Fsubscriptions%2F818e194a-9bee-486f-9854-03b3be61170b%2Fresourcegroups%2FFollowTheGuru%2Fproviders%2FMicrosoft.Web%2Fsites%2FFollowTheGuru
  2. Wait a few seconds

Expected behavior

A normal error, not a catastrophic crash

Actual behavior

We are unable to reach your function app (Not Found). Please try again later)

lucabol avatar Nov 24 '16 13:11 lucabol

This is actually a problem with the error message which should really be improved. @lucabol Could you look at issue https://github.com/projectkudu/AzureFunctionsPortal/issues/817 and see if that would have caused less confusion?

The problem is that a 404 is the right error code, because that function can't be found and can't be called. The portal message makes it sound as though the whole app was broken, which is not the case.

lindydonna avatar Nov 29 '16 22:11 lindydonna

Certainly so. But I think it is a symptom of a deeper problem, that the compilation/runtime mode is not transparent. We can chat a bit more about it in person. Perhaps I am wrong.

lucabol avatar Nov 29 '16 22:11 lucabol

Yes, you're absolutely right about this, this is a known issue that we want to improve. Compilation errors should not appear in the same place as runtime.

lindydonna avatar Nov 29 '16 22:11 lindydonna

@lucabol I've created https://github.com/projectkudu/AzureFunctionsPortal/issues/829 to track the issue of compilation vs. runtime logs.

Closing this issue as the fixes are now tracked by https://github.com/projectkudu/AzureFunctionsPortal/issues/817 and https://github.com/projectkudu/AzureFunctionsPortal/issues/829

lindydonna avatar Dec 05 '16 16:12 lindydonna

I am getting this error on my blob trigger function app "We are unable to reach your function app (Service Unavailable). Please try again later." and then I am getting a 403 while trying to open the function app in the browser. But I am able to view / edit the function C# code or the "integrate" configuration successfully. Error: Microsoft.WindowsAzure.Storage: The remote server returned an error: (403) Forbidden. Session Id: fa52a3a1196844cc8e9eb6aef482ff33

Timestamp: 2016-12-07T23:25:58.162Z

ship2moon avatar Dec 07 '16 23:12 ship2moon

@ship2moon We don't track closed issues and your comment looks looks like it's unrelated to the original issue that was opened. Please start a thread on the forums for technical help: https://social.msdn.microsoft.com/Forums/azure/en-US/home?forum=AzureFunctions

lindydonna avatar Dec 16 '16 02:12 lindydonna