[Solved] swagger Error: Fetch errorInternal Server Error /swagger/v1/swagger.jso

When using swagger as API interface document, the following error

often occurs

If this error occurs, you can take a closer look at the console,

As can be seen from the figure, ambiguous HTTP method for action is an ambiguous HTTP operation method

Check the corresponding controller and you can see that the operation feature [httppost] or [httpget] is not added. If it is added, it will be OK.

Read More: