Skip to content
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

": hi" occasionally added to messages #637

Open
Cyral opened this issue Mar 29, 2022 · 0 comments
Open

": hi" occasionally added to messages #637

Cyral opened this issue Mar 29, 2022 · 0 comments

Comments

@Cyral
Copy link

Cyral commented Mar 29, 2022

I am finding that the text ": hi" is occasionally injected into event source streams. I traced it back to this line but I am not familiar enough with nchan to tell why this is being added or if it is a bug or not.

This only appears to be happening on iOS devices that are connected with server sent events. (Our error tracking software shows the device type and whatnot, and that is the only thing in common between users) We are seeing it happen in maybe one out of every few thousand sessions.

For example, we will send some JSON payload to nchan to be broadcasted, and it will arrive perfectly for most users but occasionally it will be delivered with ": hi", breaking the JSON payload:

{
    "type": "new",
     "data:": "some-text-goes-he: hi <-- err, unable to parse json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant