ummon-server / ummon-server

Ummon is node.js application for creating, queuing, running and monitoring externally running tasks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API: Log can sometimes send back a half written line, causing a json parse error

mattmcmanus opened this issue · comments

2013-09-03T08:00:01.195Z - SUCCESS - 2d6f4003-12af-4a54-be68-7dad80a8e6e7 - demo.update-apis
2013-09-03T08:00:01.252Z - SUCCESS - 37c3955a-1d7c-4350-879a-3da611985f7c - kessler.get-broadcasts
2013-09-03T08:00:01.347Z - SUCCESS - e6519d0b-a12f-4337-9d09-17e2fc32f4bf - demo.send-emails
2013-09-03T08:00:01.367Z - SUCCESS - 2cac304f-e873-4f5a-b1c5-f2b925c9c843 - demo.process-jobs
2013-09-03T08:00:01.600Z - SUCCESS - 2549249f-4461-4f8e-a561-70eb8090feed - demo.send-text-messages
2013-09-03T08:00:01.866Z - SUCCESS - a2d1066d-d3af-42c3-8037-e1fed28dcfff - demo.send-voice-messages
2013-09-03T08:00:02.195Z - SUCCESS - bfc96e17-5f88-4262-970a-7c1663613614 - demo.get-broadcasts
2013-09-03T08:00:07.824Z - SUCCESS - 39620a2c-5988-458d-9e4b-66269a486519 - kessler.process-data

undefined:1
{"name":"ummon","hostname":"w2h-p
                                 ^
SyntaxError: Unexpected end of input
    at Object.parse (native)
    at /Users/matt/src/ummon/cli/bin/ummon-log:47:27
    at Array.forEach (native)
    at /Users/matt/src/ummon/cli/bin/ummon-log:45:26
    at /Users/matt/src/ummon/ummon/client.js:117:7
    at parseResponse (/Users/matt/src/ummon/ummon/node_modules/restify/lib/clients/json_client.js:84:17)
    at IncomingMessage.done (/Users/matt/src/ummon/ummon/node_modules/restify/lib/clients/string_client.js:152:33)
    at IncomingMessage.g (events.js:175:14)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16