Fetch error: Internal Server Error /swagger/v1/swagger.json

created at 09-09-2021 views: 2

When accessing Swagger, I often encounter the following errors:

Fetch error: Internal Server Error /swagger/v1/swagger.json

Solution:

View controller
1. Check whether to write: [HttpPost] or other features
2. Check whether to write: [Route("api/[controller]")]

NET
Please log in to leave a comment.