When integrating isolated Azure Functions with ASP.NET Core, all HTTP triggered functions fail with 500due to a System.Text.Json.JsonReaderException. This exception occurs when comments are present in the appsettings configuration files, exception occurs at Worker.Extensions.Http.AspNetCore/src/AspNetMiddleware/FunctionsEndpointDataSource.cs:135
Removing comments from the appsettings configuration files resolves the issue
Platform: Linux Ubuntu
Steps to reproduce
Set up a project with isolated Azure Functions and integrate it with ASP.NET Core.
Use appsettings configuration files that contain comments.
Run the project and try to access any HTTP triggered functions.
Description
When integrating isolated Azure Functions with ASP.NET Core, all HTTP triggered functions fail with
500
due to aSystem.Text.Json.JsonReaderException
. This exception occurs when comments are present in the appsettings configuration files, exception occurs atWorker.Extensions.Http.AspNetCore/src/AspNetMiddleware/FunctionsEndpointDataSource.cs:135
Removing comments from the appsettings configuration files resolves the issue
Platform: Linux Ubuntu
Steps to reproduce
Set up a project with isolated Azure Functions and integrate it with ASP.NET Core.
Use appsettings configuration files that contain comments.
Run the project and try to access any HTTP triggered functions.