gin-swagger icon indicating copy to clipboard operation
gin-swagger copied to clipboard

Using gin-swagger encountered a javascript error, causing the google browser not to display the swagger api page, the javascript error is as follows

Open Skobo opened this issue 1 year ago • 3 comments

Uncaught ReferenceError: SwaggerUIBundle is not defined at window.onload

Skobo avatar Jun 23 '23 11:06 Skobo

javascript besides error Uncaught SyntaxError: Unexpected token '?'

Skobo avatar Jun 23 '23 11:06 Skobo

I'm getting same error on gin-swagger v1.6.0

Uncaught ReferenceError: SwaggerUIBundle is not defined at window.onload (index.html:75:14)

nikhilchoudhary001 avatar Jul 20 '23 10:07 nikhilchoudhary001

I was able to resolve the error by setting readTimeout and writeTimeout to 10 seconds (previously it was 5 sec and was unable to download large /swagger/swagger-ui-bundle.js content)

nikhilchoudhary001 avatar Jul 20 '23 14:07 nikhilchoudhary001