question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SyntaxError: Unexpected end of JSON input

See original GitHub issue
  • code-server version: 1.691-vsc1.33.0
  • OS Version: Ubuntu 18.04 LTS Minimal, Google Cloud

Description

When I tried to run the code-server command, it gives me this error:

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 (/home/travis/build/codercom/code-server/packages/server/build/bootstrap-fork.js.gz:76703:45) at <anonymous> at Timeout.setTimeout [as _onTimeout] (/home/travis/build/codercom/code-server/packages/server/build/bootstrap-fork.js.gz:53086:31) at ontimeout (timers.js:498:11) at tryOnTimeout (timers.js:323:5) at Timer.listOnTimeout (timers.js:290:5)

Also, when I tried to connect the website ignoring the error, I received the error x.x.x.x refused to connect. (Okay. This is a different issue. I need to specify the specific IP address for the code-server to run on instead of 0.0.0.0)

Steps to Reproduce

  1. Extract the code-server and put it in bin.
  2. Run command sudo code-server -p 80

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:12
  • Comments:25 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
joshddaviscommented, Apr 7, 2019

Also getting the same error with Ubuntu 18.04 code-sever 1.691-vsc1.33.0

4reactions
malikowycommented, Apr 8, 2019

When it will be available in any release file?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught SyntaxError: Unexpected end of JSON input
A common error encountered by JavaScript programmers is the Uncaught SyntaxError: Unexpected end of JSON input. This is usually observed when the coder...
Read more >
Unexpected end of JSON input Error in JavaScript | bobbyhadz
The "Unexpected end of JSON input" error occurs when trying to parse invalid JSON using the JSON.parse or $.parseJSON methods. Trying to parse...
Read more >
Uncaught SyntaxError: Unexpected end of JSON input at ...
This is because of the data that you are trying to parse is not in a parsable format . so i suggest to...
Read more >
“Unexpected end of JSON input” – possible fixes - LinuxPip
“Unexpected end of JSON input” (or “Uncaught SyntaxError: Unexpected end of JSON input”) is a common error message in JavaScript, ...
Read more >
How to fix "SyntaxError: Unexpected token < in JSON at ...
This error occurs when you are trying to parse a string to JSON and the string is not parsable. In other words, it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found