Azure / Azure/azure-functions-openapi-extension

Following Getting Started Guide for Out of Process Model Fails

Open
#596 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
388
Forks
202
PR merge metrics
No merged PRs in 30d

Description

**Describe the issue**
When following the [getting starting guide for the out of process model](https://github.com/Azure/azure-functions-openapi-extension/blob/main/docs/enable-open-api-endpoints-out-of-proc.md) the app will compile but rendering the swagger UI fails with no errors.

**To Reproduce**
Steps to reproduce the behavior:
1. Follow the instructions [here](https://github.com/Azure/azure-functions-openapi-extension/blob/main/docs/enable-open-api-endpoints-out-of-proc.md)
2. After installing the Microsoft.Azure.Functions.Worker.Extensions.OpenApi package to the project, adding the decorators to the MyHttpTrigger and modifying Program.cs to include NewtonsoftJson the project will run with ```func host start```
3. Navigating a browser to ```http://localhost:7071/api/swagger/ui``` fails with only
```
[2023-08-01T04:46:57.864Z] Executing 'Functions.RenderSwaggerUI' (Reason='This function was programmatically called via the host APIs.', Id=98860e33-f012-4ebd-8b43-c3a9930613c6)
```
output to console and nothing rendered in browser

**Expected behavior**
Swagger UI loads

**Environment (please complete the following information, if applicable):**
- OS: Windows
- Browser firefox or chrome
- Version 1.5.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.