question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong config URL on remote server

See original GitHub issue

Hi @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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aoudiamoncefcommented, Mar 5, 2020

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 to my.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.

issue

As you can see, i don’t know why a prefix swagger-ui is added to the out-coming query ? it’s not added in localhost

Expected: remove the swagger-ui prefix from url building. Spring Boot: 2.2.4.RELEASE Springdoc: 1.2.33 Modules: springdoc-openapi-ui

Thanks

Moncef

0reactions
bnasslahsencommented, Mar 5, 2020

Your configuration is redundant and your config-url doesn’t look correct: Remove:

springdoc:
  swagger-ui:
    enabled: true
    config-url: /api/v1/api-docs
  api-docs:
    enabled: true

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:

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found