I am writing a Python GAE application that uses the channel API, and everything works fine, except that I get non-fatal browser errors in the Firefox error console when using the development server. This is essentially the same with every Channel API application, so I will show what I see with the Channel Tac Toe sample application.
It starts with a syntax error, where the source code is always shown as the number "1":
Error: syntax error
Source File: http://localhost:8080/_ah/channel/dev?command=connect&channel=channel-2053758219-1329727351-185804764220139124118185804764220139124118
Line: 1, Column: 1
Source Code:1
Further, this is an “incorrect” error (only in the Tac Toe channel):
Error: not well-formed
Source File: http:
Line: 1, Column: 1
Source Code:{"winner": null, "userX": "185804764220139124118", "moveX": true, "winningBoard": null, "board": " ", "userO": ""}
Then I get an endless series of "no items" errors, about three seconds:
Error: no element found
Source File: http://localhost:8080/_ah/channel/dev?command=poll&channel=channel-2053758219-1329727351-185804764220139124118185804764220139124118&client=1
Line: 1
After that, the Tac Toe channel behaves badly (both sides want to be an X player), although my actual application works without problems.
, JavaScript .
(a) ? , .
(b) " " , JavaScript.
, .
: Windows 7, Firefox 10.0.2 ( ), GAE 1.6.2