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

tljh-config reload should use base url #616

Closed
ikhoury opened this issue Sep 21, 2020 · 3 comments · Fixed by #623
Closed

tljh-config reload should use base url #616

ikhoury opened this issue Sep 21, 2020 · 3 comments · Fixed by #623
Labels
bug Something isn't working hacktoberfest help wanted Extra attention is needed

Comments

@ikhoury
Copy link

ikhoury commented Sep 21, 2020

Hey guys,

def check_hub_ready():

This method makes a request to http://127.0.0.1:%d/hub/api and therefore does not work when the base_url is changed using c.JupyterHub.base_url. I guess this is why tljh-config reload hangs after changing the base url.

@welcome
Copy link

welcome bot commented Sep 21, 2020

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@GeorgianaElena
Copy link
Member

I believe you are right @ikhoury! Thanks for discovering and reporting this bug 🌻

In my opinion, the simplest way to solve this, would be to add base_url to the list of things configurable with tljh-config and use it in check_hub_ready similarly with how we're doing with http port.
I think it's a common enough use-cause to change the base url and it makes sense to make it configurable through tljh-config.
@yuvipanda, what do you think about this?

Would you like to open a PR and try to fix this @ikhoury? ❤️

@GeorgianaElena GeorgianaElena added bug Something isn't working hacktoberfest help wanted Extra attention is needed labels Oct 7, 2020
@ikhoury
Copy link
Author

ikhoury commented Oct 19, 2020

Sure! Sorry for the late reply, I will work on it with a friend. I like the idea of directly using tljh-config to set the base url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants