Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Getting "net::ERR_HTTP2_PROTOCOL_ERROR 200" on Unity WebGL build in Google Chrome on Slow/Throttled Internet

A topic by ssbclarke created Jun 09, 2020 Views: 1,506
Viewing posts 1 to 1

My team is developing a Unity WebGL game and one of our target audience is primary education schools. With this in mind, we have been trying to test our WebGL game on throttled internet (around 700kbps down) which would simulate something of a school on full bandwidth load. In this testing, we have come across this error while using Google Chrome: 

"UnityLoader.js:4 GET https://v6p9d9t4.ssl.hwcdn.net/html/2337961/Level0Build/Build/Level0Build.data.u... net::ERR_HTTP2_PROTOCOL_ERROR 200"

After this error occurs, the loading bar of the Unity WebGL frame stalls and never seems to load. After a refresh, the cached data will kick back in and load it just fine. However, we can't assume that users are going to see the error and know to reload the page if this happens. It is almost as if Chrome is timing the request out, but not sending an actual timeout error. Initially, I looked up the error on different sites and generally found that this bug has a lot to do with the server-side setup (https://stackoverflow.com/questions/58215104/whats-the-neterr-http2-protocol-error-about). There are also some comments that it is a bug in chrome that is being worked on and we would just have to wait for a fix (https://chromium-review.googlesource.com/c/chromium/src/+/2001234). Another test we did was to take a look at other WebGL games on itch to see if they would get the same error. And on throttled internet, they all seemed to have the same problem, which leads me to believe that this is either a problem with some communication between itch and Chrome or the Unity web player and chrome.

Please let me know if anyone else is also getting this problem or if there have been any solutions to fix it. Thank you.

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.