Connection errors: net::ERR_HTTP2_PROTOCOL_ERROR 200 (OK) #1121
Replies: 3 comments
-
Do you have any anti-virus software in common? That typically interferes with it, but its a bit unusual to use streaming in a browser, are you sure you want to do that? Streaming generally ties up one of the connections to the server and if you don't need immediate updates, polling every 30s is often more effective. The reconnect should keep going until it is explicitly told to stop however. Your server isn't being overloaded? SSE holding open a connection means you will need an etra Edge server for every 200 or so connections as well. |
Beta Was this translation helpful? Give feedback.
-
Feel free to jump on our slack and ask questions or DM me if you need confidential assistance. |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for your response! Regarding error handling, is it possible to handle these errors from outside the SDK? Thanks for your invitation, btw! |
Beta Was this translation helpful? Give feedback.
-
Hi team,
I am experiencing some connectivity issues. An error with code
net::ERR_HTTP2_PROTOCOL_ERROR 200 (OK)
is triggered when I leave the browser's tab of my web-app in second plane or if I leave the tab without interaction for long time. Sometimes (very few) It is triggered at the beginning of the connection, while I'm waiting for the connection to beReadyness.Ready
and If the error is thrown, I have a delay of 30 seconds in the app initialization. Then the connection is recovered and start to work again.Looking at network's tab in chrome's inspector, the "EventStream" works in three steps as follows:
But when the error happens, the event stream has the close step missing.
Do you know why this happens?
How can I handle these errors?
PS: This also happens to other people who use the application, so I rule out connection problems at home.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions