-
Notifications
You must be signed in to change notification settings - Fork 40
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
sseclient can't detect end of next event? #27
Comments
Can the issue be in:
End of field is searched using a regex However, if I print |
Found the root cause - the server's response is gzip-encoded and this is reaching the SSE client in raw form. |
So, what was your solution ? |
@GPistre one way is to decode gzip stream yourself. |
I am connecting to a server and not receiving any server-sent events.
After looking into the code, this is because in sseclient.py function next(), the code beginning with
while not self._event_complete()
never completes, so it doesn't complete and process any events, but it only appends to the internal buffer.Any hints why this might be happening? Thanks.
The text was updated successfully, but these errors were encountered: