Open an-2018 opened 1 month ago
Hi @an-2018 I think the problem is that we initialize both at the same time, so we get this error the first couple of times we try to connect to jupyter.
To fix that we can wait for jupyter to be reachable before launching the API.
This change should be made to docker/setup/api.py
. Before spawning api by calling subprocess.run
we can add a loop there that keeps trying to connect to jupyter before procedding.
I also think we should use 127.0.0.1
here instead of localhost.
Description: The system fails to check if Jupyter is running, resulting in repeated connection errors.
Steps to Reproduce:
Note: have jupyter running on http://localhost:8888
Expected Behavior: The application should successfully verify if Jupyter is running without connection issues.
Actual Behavior: The following error message appears repeatedly in the logs: