Skip to content

Unexpected end of JSON input #399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nol166 opened this issue Apr 1, 2019 · 2 comments
Closed

Unexpected end of JSON input #399

nol166 opened this issue Apr 1, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@nol166
Copy link
Contributor

nol166 commented Apr 1, 2019

  • code-server version: 1.408-vsc1.32.0//docker
  • OS Version: macOS 10.14.4 (18E226)

Description

After running code server using the latest docker image, an error appears in the console

WARN  Uncaught Exception:  Error: Unexpected end of JSON input

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at pfs_1.readFile.then.contents (/src/packages/server/build/bootstrap-fork.js.gz:82195:45)
    at <anonymous>
    at Timeout.setTimeout [as _onTimeout] (/src/packages/server/build/bootstrap-fork.js.gz:57511:27)
    at ontimeout (timers.js:498:11)
    at tryOnTimeout (timers.js:323:5)
    at Timer.listOnTimeout (timers.js:290:5)

Steps to Reproduce

  1. Open docker
  2. docker run -t -p 127.0.0.1:8443:8443 -v "${PWD}:/root/project" codercom/code-server
@nol166 nol166 added the bug Something isn't working label Apr 1, 2019
@tackman
Copy link

tackman commented Apr 3, 2019

Exact same error occurred in my environment (Arch Linux). Can anybody help us?

@code-asher
Copy link
Member

This happens when the backup workspaces.json file can't be parsed because it's not valid JSON. For now please ignore this as it won't prevent the editor from functioning.

code-asher added a commit that referenced this issue Apr 3, 2019
code-asher added a commit that referenced this issue Apr 3, 2019
code-asher added a commit that referenced this issue Apr 3, 2019
code-asher added a commit that referenced this issue Apr 3, 2019
code-asher added a commit that referenced this issue Apr 3, 2019
code-asher added a commit that referenced this issue Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants