Test Error: Unexpected token a
|
09-11-2014, 12:11 PM
Post: #5
|
|||
|
|||
RE: Test Error: Unexpected token a
Thanks for the -m debug option. I managed to get a callstack.
E Sep_10_09:51:13.739 wd_server.js:1013 WebDriverServer.done_ : Run failed, stopping: SyntaxError: Unexpected token a at Object.parse (native) at DevTools. (/Users/sidbala/Gits/webpagetest/agent/js/src/devtools.js:96:33) at IncomingMessage. (/Users/sidbala/Gits/webpagetest/agent/js/src/devtools.js:46:7) at IncomingMessage.EventEmitter.emit (events.js:117:20) at _stream_readable.js:919:16 at process._tickCallback (node.js:419:13) It seems that the IOSWebKitDebugProxy is sending non JSON data on it's JSON interface. The parser fails when it finds the first token 'a' in that output. I've added additional logging to output the message it is trying to parse. I did manage to use node-debug at some time ago with the nodejs agents. However, I was not able to break on breakpoints. So it ended up being essentially a elaborate text editor. Just resorting to printf debugging now. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Test Error: Unexpected token a - sidbala - 09-10-2014, 05:50 AM
RE: Test Error: Unexpected token a - pmeenan - 09-11-2014, 12:09 AM
RE: Test Error: Unexpected token a - andydavies - 09-11-2014, 03:15 AM
RE: Test Error: Unexpected token a - pmeenan - 09-11-2014, 03:49 AM
RE: Test Error: Unexpected token a - sidbala - 09-11-2014 12:11 PM
RE: Test Error: Unexpected token a - pmeenan - 09-11-2014, 10:11 PM
RE: Test Error: Unexpected token a - sidbala - 09-12-2014, 05:43 AM
RE: Test Error: Unexpected token a - sidbala - 09-12-2014, 11:24 AM
|
User(s) browsing this thread: 1 Guest(s)