microsoft / vscode-jupyter-hub

Jupyter Hub Support in VS Code
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter-hub
MIT License
8 stars 6 forks source link

Wrong DNS resolution #56

Open michalkahle opened 2 months ago

michalkahle commented 2 months ago

Environment data

Expected behaviour

Connect to JupyterHub running at 172.17.63.10.

Actual behaviour

Tries to connect to a wrong IP (172.16.99.211). Times out. Error sending request to https://horus.ikem.cz/hub/api FetchError: request to https://horus.ikem.cz/hub/api failed, reason: connect ETIMEDOUT 172.16.99.211:443

Attempts to diagnose/fix the problem:

  1. I've tested in the browser that https://horus.ikem.cz/hub/api returns json {"version": "1.5.1"}
  2. I've tried to flush DNS cache with sudo resolvectl flush-caches
  3. I've tried to add the correct IP address to /etc/hosts
  4. I've tested connection from node:
    node -e 'fetch("https://horus.ikem.cz/hub/api").then(resp => { console.log(resp.status, resp.statusText); })'
    200 OK

Logs

Output for Jupyter in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Jupyter)

``` 18:40:59.930 [error] Error sending request to https://horus.ikem.cz/hub/api FetchError: request to https://horus.ikem.cz/hub/api failed, reason: connect ETIMEDOUT 172.16.99.211:443 > at ClientRequest. (/home/mkah/.vscode-server/extensions/ms-toolsai.jupyter-hub-2023.10.1003012305/dist/extension.node.js:63581:18) > type = system > errno = ETIMEDOUT > code = ETIMEDOUT 18:43:11.001 [error] Error sending request to https://horus.ikem.cz/hub/api FetchError: request to https://horus.ikem.cz/hub/api failed, reason: connect ETIMEDOUT 172.16.99.211:443 > at ClientRequest. (/home/mkah/.vscode-server/extensions/ms-toolsai.jupyter-hub-2023.10.1003012305/dist/extension.node.js:63581:18) > type = system > errno = ETIMEDOUT > code = ETIMEDOUT 18:43:11.002 [error] Failed to determine base url for https://horus.ikem.cz Error: Unable to determine base url of Jupyter Hub Server > at getJupyterHubBaseUrl (/home/mkah/.vscode-server/extensions/ms-toolsai.jupyter-hub-2023.10.1003012305/dist/extension.node.js:64314:9) ```

DonJayamanne commented 1 day ago

Sorry for not getting back to you on this, please can you try the following

ms-toolsai-jupyter-hub-insiders.vsix.zip

Screenshot for enabling logging

Image

To get to the logs, please open the bottom output panel (use the command Outupt: Focus Output View) & then select JupyterHub

Image