Glitch service not waking up (error 504)


#1

I came back to a project made in express after a while and I noticed that the server is not waking up, in console I’m receiving these error:

http://disboard-bot.glitch.me

SyntaxError: Unexpected token s in JSON at position 0
at JSON.parse (<anonymous>)
at /opt/watcher/source/app-picker.ts:105:37
at ChildProcess.exithandler (child_process.js:285:7)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)

Is there a command so I can restart the server (not the app), or rebuild ? :sweat:


#2

I think the editors are having a problem today, can you show me a screenshot of what you see in the json file.


#3

Hey @Qu4k3 the problem here isn’t in your package.json file but is instead in your watch.json file, which has some stray characters at the beginning. If you remove those characters you should be able to get past this error.

Let us know if you run into anything else!


#4

Thank you, effectively there where some strange characters up there.

Appreciate your fast response!