Microsoft.AspNetCore.OpenApi throws confusing exception (transitioning away from swagger)
When trying to load in the OpenApi schema it throws this exception:
Specific codebase:
https://github.com/OpenShock/API/tree/feature/replace-swagger
Configuration:
https://github.com/OpenShock/API/blob/feature/replace-swagger/Common/OpenShockServiceHelper.cs#L122-L141
Middleware:
https://github.com/OpenShock/API/blob/feature/replace-swagger/Common/OpenShockMiddlewareHelper.cs#L76-L77
Any idea where I can begin to troubleshoot?

6 Replies
Sorry, that image is unreadable. But it looks like your GET path is the problem.
You can see the text clearly if you zoom in 😄
Unknown User•16h ago
Message Not Public
Sign In & Join Server To View
I couldn't because it would make it a file...
message.txt
I didn't mean to be rude or flex by saying to zoom in
The other post was made after I closed this because I didn't feel like it was a dup but that I had narrowed it down enough that it needed a separate post
And then I proceeded to close this one
Before opening the new one
Both because this one was getting old and being pushed down enough to not get attention and because the topic had changed
Unknown User•12h ago
Message Not Public
Sign In & Join Server To View
thought this would close it
