Wrong config URL on remote server
See original GitHub issueHi @bnasslahsen, I have the configuration below:
springdoc:
swagger-ui:
enabled: true
path: /swagger
api-docs:
enabled: true
path: api/v1/api-docs
When i try to reach my swagger in localhost, redirection works fine but it fails to load remote configuration when i deploy to my remote host:
my.server.et:48596/swagger-ui/api/v1/api-docs
instead of
my.server.et:48596/api/v1/api-docs
I haven’t this issue with SpringFox, so i think that’s possible to implement it.
Thanks
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Remote Web Access "Configuration Error" - TechNet - Microsoft
I'm setting up my second SBS 2011 Essentials server for a different client. No issues with the first one in this regard. On...
Read more >java Spring Boot with Swagger - Failed to load remote ...
1 application. Failed to load remote configuration. note: the remote server is accessed via https. The REST endpoints are accessible on the ......
Read more >The Proxy Auto-configuration URL was not found (4230811)
Connecting to remote server failed with the following error message : The Proxy Auto-configuration URL was not found (4230811).
Read more >git-remote Documentation - Git
Be a little more verbose and show remote url after name. ... All remote-tracking branches and configuration settings for the remote are updated....
Read more >The remote server returned an error: (400) Bad Request.
Also, please double check the SSL settings and make sure the keystore has all the necessary certificates imported. To start, this error usually ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @bnasslahsen,
I have exactly the same configuration as you said above, but there is a strange behavior when i upload the jar to the remote server which i mentioned it in the issue.
When i hit
my.server.et:48596/swagger
i’m redirected tomy.server.et:48596/swagger-ui/index.html?configUrl=api/v1/api-docs/swagger-config
. It’s works great in localhost but never in the remote server.Even if i change configUrl property, it doesn’t works, the only way is to put the full path in Explore section. It’s clearly i kind of bug.
As you can see, i don’t know why a prefix
swagger-ui
is added to the out-coming query ? it’s not added inlocalhost
Expected: remove the
swagger-ui
prefix from url building. Spring Boot: 2.2.4.RELEASE Springdoc: 1.2.33 Modules: springdoc-openapi-uiThanks
Moncef
Your configuration is redundant and your config-url doesn’t look correct: Remove:
Unable to reproduce your issue. We invite you to review you project configuration. If you have a Minimal, Reproducible Example, we will be happy to address it: