Skip to content

Unexpected end of JSON input #32

Open
@juntyr

Description

@juntyr

Description

I'm trying out the jupyterlite-terminal extension in a custom JupyterLite deployment, which disables the service worker but runs in a secure context (so the contents drive is available). When executing any command, it fails with a JSON parse error.

Reproduce

  1. Go to https://lab.climet.eu/main/lab/index.html
  2. Open a new terminal
  3. Execute the ls command

Expected behavior

The terminal command should execute.

Context

  • JupyterLite version: 0.4.2
  • Operating System and version: MacBook
  • Browser and version: Chrome or Firefox
Browser Output
JupyterLab extension @jupyterlite/terminal:plugin is activated!
610.c0ae8fe065dc81c2a812.js?v=c0ae8fe065dc81c2a812:1 terminals available: true
610.c0ae8fe065dc81c2a812.js?v=c0ae8fe065dc81c2a812:1 terminals ready: false
610.c0ae8fe065dc81c2a812.js?v=c0ae8fe065dc81c2a812:1 terminals active: true
index.js:185 JupyterLite ServiceWorker not available
o @ index.js:185
index.js:188 Kernel filesystem and JupyterLite contents will NOT be synced
o @ index.js:188
index.js:33 Memory storage fallback enabled: contents and settings may not be saved
activate @ index.js:33
610.c0ae8fe065dc81c2a812.js?v=c0ae8fe065dc81c2a812:1 terminals ready after await: true
610.c0ae8fe065dc81c2a812.js?v=c0ae8fe065dc81c2a812:1 ==> Terminals.constructor wss://lab.climet.eu/main/
610.c0ae8fe065dc81c2a812.js?v=c0ae8fe065dc81c2a812:1 JupyterLab extension @jupyterlite/terminal:routes-plugin is activated! o
/main/git-pull/api?1730811538138:1 
   Failed to load resource: the server responded with a status of 404 ()

389.f067a180c43ff46da6db.js?v=f067a180c43ff46da6db:1 JupyterLab extension @jupyterlite/litegitpuller is activated!
610.c0ae8fe065dc81c2a812.js?v=c0ae8fe065dc81c2a812:1 ==> Terminals.new 1
610.c0ae8fe065dc81c2a812.js?v=c0ae8fe065dc81c2a812:1 ==> Terminal.wsConnect wss://lab.climet.eu/main/terminals/websocket/1
610.c0ae8fe065dc81c2a812.js?v=c0ae8fe065dc81c2a812:1 ==> Terminals.list Array(1)
610.c0ae8fe065dc81c2a812.js?v=c0ae8fe065dc81c2a812:1 ==> server connection r Proxy(e)[[Handler]]: Object[[Target]]: e[[IsRevoked]]: false
610.c0ae8fe065dc81c2a812.js?v=c0ae8fe065dc81c2a812:1 ==> Returning handshake via socket ["setup"]
817.7297f5b6dcf0b0f72dec.js?v=7297f5b6dcf0b0f72dec:2 Importing JS/WASM from https://lab.climet.eu/main/extensions/@jupyterlite/terminal/static/wasm/fs.js
817.7297f5b6dcf0b0f72dec.js?v=7297f5b6dcf0b0f72dec:2 Importing JS/WASM from https://lab.climet.eu/main/extensions/@jupyterlite/terminal/static/wasm/coreutils.js
610.c0ae8fe065dc81c2a812.js?v=c0ae8fe065dc81c2a812:1 ==> Terminals.list Array(1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions