-
-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Json data that I pass using atmosphere sometimes is corrupted #200
Comments
Salut, never faced such issues :-( Do you have a fix for that? |
Also can you try 0.9-SNAPSHOT to see if that help? Thanks! |
I have the same issue. I can reproduce the problem using the sample atmosphere-meteor-pubsub-period attached to this thread: It is very important for me to get a fix for the version 0.8.6 or some patch in this version. Thanks, |
This is not a bug, but a missing features in Atmosphere. Take a look at the Twitter Feeds for a workaround
|
I would like to reopen this issue. |
This has been fixed in 0.9. Take a look at the Twitter-live-feed sample. |
Hello, I found error on runtime.
My configuration:
Atmosphere 0.8.5,
Firefox 10.0.2
glassfish-3.1.2-web-b23
In my application I send json data from serverside to browser.
I noticed that sometimes I can't parse json data on a client because data is periodically corrupted.
The problem appears in two variants:
goes next set of json data in one parameter of atmosphere callback. And $.parseJSON() parses this data with error.
During debugging I found that in that case something wrong with variable request.lastIndex on atmosphere javascript sources
response.responseBody = responseText.substring(request.lastIndex, responseText.length);
During debugging of atmosphere javascript sources I found that corrupted data received on that line
line:330 var responseText = ajaxRequest.responseText;
So XMLHttpRequest object returns cutted data. (but may be it is sideeffect of debugging)
The text was updated successfully, but these errors were encountered: