Open waltkb opened 1 month ago
I found out that this issue only occurs when running this main function from src/test/kotlin
, and when moving the file to src/main/kotlin
this error does not occur. Do you have any idea what could be the issue here, because all other ktor plugins etc work fine, no matter where they run from?
That sounds strange. Can't think of any reason why it would behave differently based on the file location :thinking: How are you running the example? E.g. via the IDE or with a command ... ?
I tried running the "Basic" example, taken from https://github.com/SMILEY4/ktor-swagger-ui/blob/develop/ktor-swagger-ui-examples/src/main/kotlin/io/github/smiley4/ktorswaggerui/examples/Basics.kt, only switching to CIO and adding the StatusPages plugin (and some logging configuration):
With this example, accessing the URLs does not work for me:
The following exception trace is printed when accessing
/api.json
I am using the latest version of the dependency:
implementation("io.github.smiley4:ktor-swagger-ui:3.5.1")