Current time: 01-27-2021, 06:18 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Test Error: Unexpected token a - sidbala - 09-10-2014, 05:50 AM
RE: Test Error: Unexpected token a - sidbala - 09-11-2014 12:11 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)