You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a 404 when I try to access the swagger UI. The 404 response comes from the swaggerUI routing because it's body is different from the 404s from my application. The openapi JSON generation is working correctly. My config is
when I visit accounts/v2/swagger in my browser, I get a 404 with the body index.html could not be found. Same thing using cUrl
curl http://localhost:8081/account/v2/swagger -vL
> GET /account/v2/swagger HTTP/1.1
...
< HTTP/1.1 302 Found
< Location: /account/v2/swagger/index.html
...
> GET /account/v2/swagger/index.html HTTP/1.1
...
< HTTP/1.1 404 Not Found
...
index.html could not be found%
Any pointers on how to correct this?
The text was updated successfully, but these errors were encountered:
This works in my browser (both with and without /index.html) and got this output from curl:
~ » curl http://localhost:8081/account/v2/swagger -vL
> GET /account/v2/swagger HTTP/1.1
...
< HTTP/1.1 302 Found
< Location: /account/v2/swagger/index.html
...
* Issue another request to this URL: 'http://localhost:8081/account/v2/swagger/index.html'
...
> GET /account/v2/swagger/index.html HTTP/1.1
...
< HTTP/1.1 200 OK
< Content-Length: 734
< Content-Type: text/html
...
Does only the redirect result in a 404 or also when you access the /index.html directly?
Do you have a rootPath or anything else configured for ktor that could influence that?
I'm getting a 404 when I try to access the swagger UI. The 404 response comes from the swaggerUI routing because it's body is different from the 404s from my application. The openapi JSON generation is working correctly. My config is
when I visit
accounts/v2/swagger
in my browser, I get a 404 with the bodyindex.html could not be found
. Same thing using cUrlAny pointers on how to correct this?
The text was updated successfully, but these errors were encountered: