You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I'm encountering an HTTP 503 error when trying to use the JupyterCodeExecutor in execution.py. Specifically, the issue occurs during the request to retrieve available Jupyter kernelspecs from the /api/kernelspecs endpoint.
Steps to Reproduce
In execution.py, build self.executor using JupyterCodeExecutor.
During execution, self.executor attempts to connect to the Jupyter server to fetch available kernelspecs.
The following debug information was gathered with pdb during the process:
API URL: f"{self._get_api_base_url()}/api/kernelspecs"
Result: 'http://127.0.0.1:8888/api/kernelspecs'
The GET request to http://127.0.0.1:8888/api/kernelspecs returns a <Response [503]>, indicating "Service Unavailable." This prevents the JupyterCodeExecutor from initializing properly.
Expected Behavior
A successful response from the Jupyter server's /api/kernelspecs endpoint, returning the available kernelspecs in JSON format, allowing JupyterCodeExecutor to proceed.
Environment
Jupyter Server: Running locally on 127.0.0.1:8888
Authorization Token: Provided in headers as shown above.
Code Environment: Python, using requests.Session with retry configuration.
Additional Information
I attempted to change the port to other available ports, but the 503 error persists.
The text was updated successfully, but these errors were encountered:
I identified the cause of the issue today. It turns out that due to network restrictions within the cluster, enabling certain proxies resolves the problem. The solution is to set up the proxy as follows:
Great work!
However, I'm encountering an HTTP 503 error when trying to use the
JupyterCodeExecutor
inexecution.py
. Specifically, the issue occurs during the request to retrieve available Jupyter kernelspecs from the/api/kernelspecs
endpoint.Steps to Reproduce
execution.py
, buildself.executor
usingJupyterCodeExecutor
.self.executor
attempts to connect to the Jupyter server to fetch available kernelspecs.pdb
during the process:f"{self._get_api_base_url()}/api/kernelspecs"
Result:
'http://127.0.0.1:8888/api/kernelspecs'
self._get_headers()
Result:
{'Authorization': 'token 2a0520927042e57913bd161b2c2e403f72a1fdfabdd4daa94878b1096844c0eb'}
<Response [503]>
Observed Behavior
The GET request to
http://127.0.0.1:8888/api/kernelspecs
returns a<Response [503]>
, indicating "Service Unavailable." This prevents theJupyterCodeExecutor
from initializing properly.Expected Behavior
A successful response from the Jupyter server's
/api/kernelspecs
endpoint, returning the available kernelspecs in JSON format, allowingJupyterCodeExecutor
to proceed.Environment
127.0.0.1:8888
requests.Session
with retry configuration.Additional Information
I attempted to change the port to other available ports, but the 503 error persists.
The text was updated successfully, but these errors were encountered: