Skip to content

Wrong DNS resolution #56

Closed
Closed
@michalkahle

Description

@michalkahle

Environment data

  • VS Code version: 1.89.1
  • Jupyter Extension version (available under the Extensions sidebar): v2024.4.0
  • Python Extension version (available under the Extensions sidebar): v2024.6.0
  • OS (Windows | Mac | Linux distro) and version: Ubuntu 22.4
  • Python and/or Anaconda version: XXX
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): XXX
  • Jupyter server running: Local | Remote | N/A

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.<anonymous> (/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.<anonymous> (/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)

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions