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

API page stuck at fetching resource list http://localhost/api/swagger.json

Open gauravraj-fk opened this issue 6 years ago • 0 comments

When I try to open the swagger page, it is stuck saying the message - fetching resource list: http://localhost:10001/api/swagger.json`

When I inspect the console error, its showing - Uncaught TypeError: Cannot read property 'tags' of null at SwaggerClient.buildFromSpec (swagger-client.js:454) at Object.response (swagger-client.js:371) at process.EventEmitter.response (swagger-client.js:2953) at process.EventEmitter.EventEmitter.emit (shred.bundle.js:1391) at emit (shred.bundle.js:1191) at shred.bundle.js:1211 at setBodyAndFinish (shred.bundle.js:1815) at module.exports.<anonymous> (shred.bundle.js:1832) at module.exports.EventEmitter.emit (shred.bundle.js:1388) at module.exports.Response.handle (shred.bundle.js:2715) swagger-client.js:454 shows - var tags = operation.tags;

Its trying to print the APIs which are not defined the resource.

I'm using dropwizard-swagger 0.7.0, swagger 1.5.1 and dropwizard 0.9.2

gauravraj-fk avatar Jan 14 '19 18:01 gauravraj-fk