New topic: JSON Parse error: Unexpected identifier "Unable"
<http://forums.realsoftware.com/viewtopic.php?t=46733> Page 1 of 1 [ 5 posts ] Previous topic | Next topic Author Message JohnV Post subject: JSON Parse error: Unexpected identifier "Unable"Posted: Mon Jan 28, 2013 3:03 pm Joined: Sun Jan 28, 2007 2:38 pm Posts: 158 I am seeing this a few times a week. Trouble evaluating response: JSON Parse error: Unexpected identifier "Unable" Source: Unable to launch application 'my app' on port XXXXXXX (Where XXXXXXX is a port number.) Does anybody have any idea where I can start to understand how debug this? Last edited by JohnV on Mon Jan 28, 2013 4:43 pm, edited 1 time in total. Top Stretch Post subject: Re: JSON Parse error: Unexpected identifier "Unable"Posted: Mon Jan 28, 2013 3:50 pm Real Software Engineer Joined: Tue Jul 14, 2009 4:33 pm Posts: 106 Location: Jacksonville, FL The only way I can think of that happening is if your app has crashed or is too busy to respond and the browser hasn't figured that out yet. _________________ Greg O'Lone Software Engineer Real Software Top JohnV Post subject: Re: JSON Parse error: Unexpected identifier "Unable"Posted: Mon Jan 28, 2013 4:21 pm Joined: Sun Jan 28, 2007 2:38 pm Posts: 158 Help me understand the underpinnings of the framework a little bit better. Am I correct in assuming that there is a JavaScript framework running in the browser that is communicating back-and-forth to the application, via the Web server, and passes the data in JSON format? If this is a case, am I further correct in assuming a very bad network connection could result in this error because it only has part of the data: making it difficult, if not impossible to parse? Does the framework simply wait/ timeout of the complete data? (Thus leaving the misbehaving or 'please deliver the data again' to the underlying TCP stack?) Or does it poll the application a second time. It would be really nice if the app could say "Hang on a second framework, Im chewing on your request!" Rather then having the framework dump the entire session on the floor. I understand the the connection is out of control of the RS engineer: all the more reason to build in triple bullet proof redundancy. Or am I smoking too much crack? Top wpurvis Post subject: Re: JSON Parse error: Unexpected identifier "Unable"Posted: Mon Jan 28, 2013 4:27 pm Joined: Tue Oct 04, 2005 10:55 am Posts: 36 Location: Fort Myers, FL JohnV wrote:I am seeing this a few times a week. Trouble evaluating response: JSON Parse error: Unexpected identifier "Unable" Source: Unable to launch application 'wwwiga' on port XXXXXXX (Where XXXXXXX is a port number.) Does anybody have any idea where I can start to understand how debug this? I don't know much about WE, so this is unlikely to be helpful, but I couldn't help but notice that the word "Unable" it's complaining about is the first word of the "Source" -- is that a clue? It sounds like something is trying to parse a plain text error message as JSON, and complaining because it's not valid JSON. Why that would be happening, I haven't the foggiest. Top Stretch Post subject: Re: JSON Parse error: Unexpected identifier "Unable"Posted: Mon Jan 28, 2013 6:41 pm Real Software Engineer Joined: Tue Jul 14, 2009 4:33 pm Posts: 106 Location: Jacksonville, FL Because as I said, the app either crashed or is too busy to respond. The text that's being sent back to the browser is from the cgi script. _________________ Greg O'Lone Software Engineer Real Software Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 5 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml rbforumnotifier@monkeybreadsoftware.de