Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Script node executed prematurely when calling the api

Not applicable

Hi

I get the following error when trying to access the api which was working fine on friday.

{"fault":{"faultstring":"Script node executed prematurely: missing : after property id\n at module.js:439\n at module.js:474\n at module.js:356\n at module.js:312\n at module.js:497\n at startup (trireme.js:142)\n at trireme.js:923\n","detail":{"errorcode":"scripts.node.runtime.ScriptExitedError"}}}

Here is the node.js logs

[2015-04-20T05:58:41.460Z nodejs/stderr svr.98] [2015-04-20T05:58:41.564Z nodejs/stderr svr.45] *** Starting script [2015-04-20T05:58:41.570Z nodejs/stdout svr.45] [2015-04-20T05:58:41.570Z nodejs/stderr svr.45] [2015-04-20T05:58:41.573Z nodejs/stderr svr.45] *** missing : after property id at module.js:439 at module.js:474 at module.js:356 at module.js:312 at module.js:497 at startup (trireme.js:142) at trireme.js:923 [2015-04-20T05:58:41.573Z nodejs/stderr svr.45]

Any idea why I am getting this error suddenly?

Thanks

Solved Solved
0 4 1,574
1 ACCEPTED SOLUTION

Can you run your script locally please? (e.g. node app.js) the objective is not to run the script fully but just to see whether it will start successfully or not.

You might have a syntax error somewhere in your code - possibly a json object with an "id" property which wasn't separated with ":" char, i.e. { "id" : "12345"}

View solution in original post

4 REPLIES 4