servertap icon indicating copy to clipboard operation
servertap copied to clipboard

OpenApi spews tons of WARNs into the logs when viewing /swagger

Open phybros opened this issue 3 years ago • 12 comments

This is new since I made some changes to the javalin-openapi version etc. The error is harmless, but barfs this into the server log when you visit /swagger:

[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/ping -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/server -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/server/exec -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/server/ops -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/server/ops -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: DELETE path: /v1/server/ops -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/server/whitelist -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/server/whitelist -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/worlds -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/worlds/save -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/worlds/:uuid -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/worlds/:uuid/save -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/scoreboard -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/scoreboard/:name -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/chat/broadcast -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/chat/tell -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/players -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/players/all -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/players/:uuid -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/players/:playerUuid/:worldUuid/inventory -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/economy/pay -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/economy/debit -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/economy -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:50 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/plugins -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/ping -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/server -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/server/exec -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/server/ops -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/server/ops -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: DELETE path: /v1/server/ops -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/server/whitelist -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/server/whitelist -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/worlds -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/worlds/save -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/worlds/:uuid -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/worlds/:uuid/save -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/scoreboard -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/scoreboard/:name -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/chat/broadcast -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/chat/tell -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/players -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/players/all -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/players/:uuid -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/players/:playerUuid/:worldUuid/inventory -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/economy/pay -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/economy/debit -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/economy -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/plugins -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/ping -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/server -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/server/exec -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/server/ops -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/server/ops -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: DELETE path: /v1/server/ops -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/server/whitelist -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/server/whitelist -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/worlds -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/worlds/save -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/worlds/:uuid -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/worlds/:uuid/save -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/scoreboard -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/scoreboard/:name -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/chat/broadcast -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/chat/tell -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/players -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/players/all -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/players/:uuid -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/players/:playerUuid/:worldUuid/inventory -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/economy/pay -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: POST path: /v1/economy/debit -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/economy -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:51 WARN]: [io.javalin.plugin.openapi.dsl.ExtractDocumentation] cannot match handler: GET path: /v1/plugins -- no Handler-type fields declared in class io.servertap.PluginEntrypoint
[01:12:52 WARN]: [io.javalin.plugin.openapi.JavalinOpenApi] A default response was added to the documentation of GET /v1/server/ops
[01:12:52 WARN]: [io.javalin.plugin.openapi.JavalinOpenApi] A default response was added to the documentation of GET /v1/worlds/{uuid}
[01:12:52 WARN]: [io.javalin.plugin.openapi.JavalinOpenApi] A default response was added to the documentation of GET /v1/scoreboard/{name}

phybros avatar May 05 '21 05:05 phybros

Figured out the last part at least

[09:43:27 WARN]: [io.javalin.plugin.openapi.JavalinOpenApi] A default response was added to the documentation of GET /v1/server/ops
[09:43:27 WARN]: [io.javalin.plugin.openapi.JavalinOpenApi] A default response was added to the documentation of GET /v1/worlds/{uuid}
[09:43:27 WARN]: [io.javalin.plugin.openapi.JavalinOpenApi] A default response was added to the documentation of GET /v1/scoreboard/{name}

The OpenApi annotations had the wrong paths, and/or missing pathParams

phybros avatar May 05 '21 17:05 phybros

It's now september and this is still a thing

phybros avatar Sep 16 '21 23:09 phybros

Let me check

srmullaney avatar Sep 16 '21 23:09 srmullaney

@srmullaney this IS still a thing, I was just confirming again so I didn't forget about this issue :D.

phybros avatar Sep 16 '21 23:09 phybros

Omg, yes it is.

srmullaney avatar Sep 16 '21 23:09 srmullaney

I thought someone had fixed it, but it seems to be back.

srmullaney avatar Sep 16 '21 23:09 srmullaney

Screenshot 2021-09-16 193004

Sorry for the spam. Should have done all this in one post.

srmullaney avatar Sep 16 '21 23:09 srmullaney

Still a thing

phybros avatar Dec 13 '21 18:12 phybros

ya still a thing, i had to delete the plugin cuz i got discordSRV installed too and was spamming my discord console channel

Chrisx84 avatar Dec 13 '21 19:12 Chrisx84

@phybros Sadly yeah this is still a thing lol

srmullaney avatar Dec 13 '21 23:12 srmullaney

Submitted an issue here: tipsy/javalin/issues/1450

phybros avatar Dec 15 '21 15:12 phybros

any fix yet to this issue?

Chrisx84 avatar Dec 28 '21 19:12 Chrisx84

Fixed with the release of v0.5.0

phybros avatar Apr 11 '23 17:04 phybros