-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swag v2.0.0-rc3 generated docs throws internal server error with echo framework #1588
Comments
Can you post the error, that is being thrown? |
Hi @Nerzal There is no error on the golang console, however this is what i see in the browsers developer tools |
I've found the same error here. I'm not using echo. Instead I was using https://github.com/swaggo/http-swagger. The problem is actually due to https://github.com/swaggo/echo-swagger/blob/master/go.mod and http-swagger depending on swag version |
any solution? |
This #830 (comment) solved this issue. |
SO, just add the following line on the imports section
|
Thank you so much, this solution work for me |
Swag v2.0.0-rc3 generated docs throws internal server error with echo framework
Internal Server Error doc.json with swag latest version and echo framework.
To Reproduce
Steps to reproduce the behavior:
example: [_ "github.com/vinodborole/swag-ex/docs"]
Expected behavior
swagger UI opens up without any error.
Screenshots
Internal Server Error doc.json.
Your swag version
v2.0.0-rc3
Your go version
1.19
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: