404 error [HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] on linux container durable function app #1790
-
the attached docker file is used to generate a container from a function that works well in linux and windows appservice plans. at some point, perhaps due to Something I Did, the http triggers began throwing 404 in East Us on a B1 Linux App Svc. Any ideas? DOCKERFROM mcr.microsoft.com/azure-functions/dotnet:3.0 AS base FROM mcr.microsoft.com/dotnet/sdk:3.1-buster AS build WORKDIR /src RUN dotnet restore -r "linux-x64" "projectinclude/etc.csproj" FROM build AS publish FROM base AS final ENV AzureWebJobsScriptRoot=/home/site/wwwroot |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Since the 404 is coming from an HTTP trigger function, the problem likely isn't related to Durable Functions. I would suggest taking a look at your logs in Application Insights (assuming you have that configured). At app startup time, there should be some information about what functions were found. Make sure that all the HTTP trigger functions you expect to see are there. If not, check to make sure your app payload includes them and that you don't have any app settings, etc. that might be disabling your HTTP triggers. |
Beta Was this translation helpful? Give feedback.
-
the root cause for this has been identified and documented over here Azure/azure-functions-docker#433 the issue was |
Beta Was this translation helpful? Give feedback.
the root cause for this has been identified and documented over here Azure/azure-functions-docker#433
the issue was
missing http extension declaration in host.jsonunidentified but localized to the specific failing app service. fix was to spin up a new function app container svc and redeploy and duplicate config. so this one is a mystery