Renku Session url is not valid in Safari
Describe the bug
I tried to use renku session start, and copied the provided url into Safari, and it did not work. Safari gave me an error:
Safari can't open the page "0.0.0.0:56674/?token=....." because the page's address isn't valid.
I also tried renku session open <>, which opened a Safari window, and it did not work.
When I opened the same link in Chrome, it worked (opened JupyterLab).
When I changed the url from 0.0.0.0 to localhost or to 127.0.0.1, it worked on Safari! (fixed the issue)
To Reproduce Steps to reproduce the behavior:
- Clone a Renku project repo
- Build the docker image
renku session start- Paste the url into Safari
Expected behavior JupyterLab to open in Safari window
Run environment (please complete the following information):
- renku-python version: 1.3.1
- Python version: 3.9.12
- local terminal OR renkulab interactive environment? local terminal
- if renkulab, specify RStudio / Jupyterlab / Other & browser [e.g. chrome, safari] safari
Is it possible that you just need to wait a bit? I had the same happen in firefox (link didn't work) but another time when the session had been running for a few seconds it opened fine.
I cannot replicate this on Mac. Copying and pasting the session url in Safari works.
I followed the exact same steps as specified above. My renku CLI version is 1.5.0.dev2+gd3b449eb. So this must have been fixed since version 1.3.1
I'm still getting this behavior on renku 1.5.0. I'm on Safari 15.4.
I gave it a bunch of time (a few minutes) and it still doesn't work.
@olevski Separate issue: When I ran renku session open <>, it opened a page on renkulab.io, which said that "The session you are trying to open is not available." I had to explicitly type renku session open --provider docker <>, to get back to my 0.0.0.0 url (that does not work on Safari). It seems that renku session open did not respect the provider where the session was started in the first place? Shall I file this as a separate bug?