Vscode-jupyter: Failed to connect to Jupyter notebook. TypeError: Only absolute URLs are supported

Created on 6 Jun 2020  路  9Comments  路  Source: microsoft/vscode-jupyter

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

  1. load file.ipynb (which had previously work)
  2. Run first cell
  3. Above error reported

Actual behavior

Only the error appeared

Your Jupyter and/or Python environment

_Please provide as much info as you readily know_

  • Jupyter server running: Local
  • Extension version: 2020.5.80290
  • VS Code version: 1.45.1
  • Setting python.jediEnabled: false
  • Setting python.languageServer: Microsoft
  • Python version: 3.8.1
  • OS: Windows
  • Virtual environment: N/A | ...
    Version: 1.45.1 (system setup)
    Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
    Date: 2020-05-14T08:27:35.169Z
    Electron: 7.2.4
    Chrome: 78.0.3904.130
    Node.js: 12.8.1
    V8: 7.8.279.23-electron.0
    OS: Windows_NT x64 10.0.18362

Developer Tools Console Output

Failed to connect to Jupyter notebook. http://localhost:8888/ TypeError: Only absolute URLs are supported
onDidChangeNotification @ notificationsAlerts.ts:40
(anonymous) @ notificationsAlerts.ts:26
fire @ event.ts:587
addNotification @ notifications.ts:207
notify @ notificationService.ts:106
(anonymous) @ mainThreadMessageService.ts:83
_showMessage @ mainThreadMessageService.ts:44
$showMessage @ mainThreadMessageService.ts:38
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
console.ts:137 [Extension Host] Error Python Extension: 2020-06-06 11:02:21: DataScience Error [i [Error]: at new i (c:\Users\a-rob.vscode\extensions\ms-python.python-2020.5.80290\out\client\extension.js:1:480683) at c:\Users\a-rob.vscode\extensions\ms-python.python-2020.5.80290\out\client\extension.js:16:586394 at runMicrotasks () at runNextTicks (internal/process/task_queues.js:58:5) at processImmediate (internal/timers.js:412:9)

TypeError: Only absolute URLs are supported at getNodeRequestOptions (c:\Users\a-rob.vscode\extensions\azuredevspaces.azds-2.0.220200605\dist\extension.js:34350:9) at c:\Users\a-rob.vscode\extensions\azuredevspaces.azds-2.0.220200605\dist\extension.js:34455:19 at new Promise () at fetch (c:\Users\a-rob.vscode\extensions\azuredevspaces.azds-2.0.220200605\dist\extension.js:34452:9) at Object.e.handleRequest (c:\Users\a-rob.vscode\extensions\ms-python.python-2020.5.80290\out\client\node_modules\@jupyterlab\services.js:1:92015) at Object.e.makeRequest (c:\Users\a-rob.vscode\extensions\ms-python.python-2020.5.80290\out\client\node_modules\@jupyterlab\services.js:1:90580) at c.newUntitled (c:\Users\a-rob.vscode\extensions\ms-python.python-2020.5.80290\out\client\node_modules\@jupyterlab\services.js:3:394046) at t.ContentsManager.newUntitled (c:\Users\a-rob.vscode\extensions\ms-python.python-2020.5.80290\out\client\node_modules\@jupyterlab\services.js:3:391190) at _.createSession (c:\Users\a-rob.vscode\extensions\ms-python.python-2020.5.80290\out\client\extension.js:92:446220) at _.connect (c:\Users\a-rob.vscode\extensions\ms-python.python-2020.5.80290\out\client\extension.js:92:443758) at t.JupyterSessionManager.startNew (c:\Users\a-rob.vscode\extensions\ms-python.python-2020.5.80290\out\client\extension.js:92:440835) at g.connect (c:\Users\a-rob.vscode\extensions\ms-python.python-2020.5.80290\out\client\extension.js:92:415343) at runMicrotasks () at runNextTicks (internal/process/task_queues.js:58:5) at processImmediate (internal/timers.js:412:9) at async c:\Users\a-rob.vscode\extensions\ms-python.python-2020.5.80290\out\client\extension.js:16:585254]

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

bug

Most helpful comment

Ahh I uninstalled Azure CLI Tools and bingo. All working again!

All 9 comments

Thanks for the bug report! Is this a notebook that is running locally? Would you be able to provide the notebook so we can attempt to reproduce the error?

Yes it is running locally and had been working fine really confused

I see in the stack trace you provided above that the error is being thrown by the Azure Dev Spaces extension. Is what you're currently trying to do dependent on the Azure Dev Spaces extension? If not, could you try disabling that extension, reloading VS Code, and letting me know if that changes anything?

here is the file

I did get an error to install that in in the hope that it might resolve the issue I did happy to remove. I Not only restarted, I rebooted ... I will now remove that and restart

:( no good

Ahh I uninstalled Azure CLI Tools and bingo. All working again!

Glad to hear it! :)

This was the exact same issue for me. Note, that Spark & Hive Tools is dependent on Azure Account, so that has to be uninstalled too.

Was this page helpful?
0 / 5 - 0 ratings