-
-
Notifications
You must be signed in to change notification settings - Fork 523
Proxy Routing Cache Problem When Using Swagger-UI #1419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There are no known proxy issues. Note that demos are served behind proxies...
Your description is unclear. Try describing your steps to reproduce one by one. (Use GITHUB formatting).
|
This ticket will be closed and can be reopened if any relevant information is provided. |
Hello @bnasslahsen , The problem is that configUrl is not built each time even if the cache is disabled. Thank you in advance for your help |
Hello @seymabatige, |
hi @abenjell actually I couldn't resolve the problem. Since I always access the endpoint through proxy, it does not create a problem in the actual environment. |
Ok thank you for your feedback @seymabatige |
@seymabatige did you find a solution? @bnasslahsen any news on the subject? |
Apparently the issue also impacts automatically generated server url |
Hello, |
I put a hack for this problem in #1712 |
Hi,
I've been migrating one of my applications from springfox to springdoc and I've run into the very same problem as in #331
I start both my application and the proxy. When I go to swagger ui directly from my application and then through the proxy, it seems to cache the config url and in one of two ways I get :
Failed to load remote configuration error. swagger-config gets 404 due to incorrectly created config url. (When I go through the application endpoint, it adds the forwarded prefix,
or when I go through the proxy, it lacks the forwarded prefix)
I added "server.forward-headers-strategy:framework" to my application yml file and in my swagger config class I added the following bean :
I also disabled springdoc cache as suggested in issue 331. However, it didn't work and when I debug it seems to be caching the config url although springdoc cache is disabled.
My springdoc-openapi version is 1.6.3 and spring-boot version is 2.6.2
Thanks for your help
The text was updated successfully, but these errors were encountered: