Skip to content
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

Plumber overriding swagger API host address with 127.0.0.1 even if not desired #960

Open
s-fleck opened this issue Sep 4, 2024 · 0 comments

Comments

@s-fleck
Copy link
Contributor

s-fleck commented Sep 4, 2024

plumber 1.2.2 overrides the swagger api url with 127.0.0.1 which causes swagger to become unavailable inside docker containers, even if the api works.

I'm aware this problem has been reported and fixed in the past, but it seems it reappeared. After looking through the plumber code, options(plumber.apiURL = paste0('http://0.0.0.0:1234')) is a serviceable workaround. please note it only works when setting apiURL, apiHOST, apiPORT, etc are NOT enough to fix this.

edit: overriding plumber.apiURL seems to break the url generation inside swagger (e.g. you can no longer execute the examples), so it's not a serviceable workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant