bmoren / p5js-toolbar

p5js toolbar for atom.io with a run button to launch a local server and quick links to common resources
9 stars 5 forks source link

Uncaught SyntaxError: Unexpected token u in JSON at position 0 #14

Open fanspaceshow opened 4 years ago

fanspaceshow commented 4 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.45.0 x64 Electron: 4.2.7 OS: Unknown Windows version Thrown From: p5js-toolbar package 0.2.1

Stack Trace

Uncaught SyntaxError: Unexpected token u in JSON at position 0

At file:///C:/Users/tianming.fan/AppData/Local/atom/app-1.45.0/resources/app.asar/static/index.html:1

SyntaxError: Unexpected token u in JSON at position 0
    at JSON.parse (<anonymous>)
    at Request._callback (/packages/p5js-toolbar/lib/p5js-toolbar-view.js:155:22)
    at self.callback (/packages/p5js-toolbar/node_modules/request/request.js:185:22)
    at Request.emit (events.js:182:13)
    at Request.onRequestError (/packages/p5js-toolbar/node_modules/request/request.js:877:8)
    at ClientRequest.emit (events.js:182:13)
    at TLSSocket.socketErrorListener (_http_client.js:391:9)
    at TLSSocket.emit (events.js:182:13)
    at emitErrorNT (internal/streams/destroy.js:82:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
    at process._tickCallback (internal/process/next_tick.js:63:19)

Commands

     -9:50.2.0 core:cut (input.hidden-input)
  2x -9:49.6.0 core:save (input.hidden-input)
     -8:28.9.0 editor:newline (input.hidden-input)
     -8:28.6.0 core:paste (input.hidden-input)
     -8:28.3.0 core:save (input.hidden-input)
     -8:19.9.0 core:paste (input.hidden-input)
  3x -8:19.6.0 core:save (input.hidden-input)

Non-Core Packages

atom-ternjs 0.20.0 
autocomplete-javascript 0.0.2 
hyperclick 0.1.5 
p5js-snippets 0.4.4 
p5js-toolbar 0.2.1