My guess was that I had a configuration problem in Startup.cs and that the swagger.json file either wasn’t being generated or it was in the wrong place. The dev tools in Edge was showing me that it was trying to access swagger.json but it was getting an HTTP 500 error. NET Core 5 so I wasn’t really sure what broke it. I knew that it used to work but I’d just updated about a half zillion things in my code including upgrading to. Unfortunately, in this case, I went to my swagger URL and got an error saying “Failed to load API definition - Fetch error - Internal Server Error /swagger/v1/swagger.json.” How do you fix this error? The Swagger UI error ![]() Usually, it’s just a matter of starting the project and going to your /swagger directory. I was working with some ASP.NET WebApi code and needed to test something using the Swagger UI.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |