I’ve only started noticing this today, while testing out my game from the PlayCanvas editor, I’ll frequently get this error loading a particular asset on refresh:
GET https://launch.playcanvas.com/api/assets/files/Sound/BGM/bgm3_mix1.ogg?id=52236558&branchId=d35e7c6f-3e75-4ccd-b601-63772f2aad14&t=7f8e27a73ae4d1bb9d142cce8278f07b net::ERR_HTTP2_PROTOCOL_ERROR 200
Refreshing will often make the error go away, but it comes up pretty frequently, mostly with this particular file, but sometimes with other assets too. It’s preceded by GET: /api/assets/files/Sound/BGM/bgm3_mix1.ogg?id=52236558&branchId=d35e7c6f-3e75-4ccd-b601-63772f2aad14&t=7f8e27a73ae4d1bb9d142cce8278f07b - Error 0. Retrying in 200 ms.
It seems to happen less frequently now (it was on every page refresh a few hours ago. Now it’s on 2-3 out of every 10 refreshes).
Is anyone else experiencing this/is this something my project may be doing incorrectly?
I’ve had this once yesterday too, I didn’t think much of it at the time since it went away with a single refresh… After looking up the error message, it seems to be server related? See php - What's the net::ERR_HTTP2_PROTOCOL_ERROR about? - Stack Overflow. Calling @yaustar, could this be an issue related to the PlayCanvas server config?
If it’s not preventing the asset from being used then that’s great! (haven’t gotten to the using audio part of this project yet but will be able to confirm soon.
Here are a few examples of it happening today plus timestamp:
GET: /api/assets/files/Sound/BGM/bgm3_mix1.ogg?id=52236558&branchId=d35e7c6f-3e75-4ccd-b601-63772f2aad14&t=7f8e27a73ae4d1bb9d142cce8278f07b - Error 0. Retrying in 200 ms
playcanvas-stable.dbg.js:2051 GET https://launch.playcanvas.com/api/assets/files/Sound/BGM/bgm3_mix1.ogg?id=52236558&branchId=d35e7c6f-3e75-4ccd-b601-63772f2aad14&t=7f8e27a73ae4d1bb9d142cce8278f07b net::ERR_HTTP2_PROTOCOL_ERROR 200
GET: /api/assets/files/Sound/BGM/bgm2.ogg?id=52188362&branchId=d35e7c6f-3e75-4ccd-b601-63772f2aad14&t=ad894b433ea3d1359aef1dff383db61e - Error 0. Retrying in 200 ms
playcanvas-stable.dbg.js:2051 GET https://launch.playcanvas.com/api/assets/files/Sound/BGM/bgm2.ogg?id=52188362&branchId=d35e7c6f-3e75-4ccd-b601-63772f2aad14&t=ad894b433ea3d1359aef1dff383db61e net::ERR_HTTP2_PROTOCOL_ERROR 200
We’re also getting this intermittently - maybe 50% of the time? Specifically for mp3 files.
Our implementation might be wrong but it looks as though the load operation does indeed error out, ceasing execution. I might have to put our asset loading in a try catch just for the mp3s
Edit: Just confirmed that we’re still getting the error, albeit less frequently, even after we move to our own hosting.
@ChiefBreakeverything What browser are you using? We also had similar problems, which only occured in chromium browsers. Firefox worked without hickups.
@yaustar I can confirm it is still happening as of today. It’s particularly frequent on the Oculus Quest browser if that helps establish a cause, but it happens on Chrome as well.
It’s a private project for a client - let me discuss with my team tomorrow to clear up any potential issues there first and then I’ll go ahead and add you!
@ChiefBreakeverything If it’s happening on your own hosting (sorry, I missed that you were self hosting), then it’s possible it’s related to the hosting provider and/or the browser.
It happens most frequently when using launch.playcanvas links, i.e. when testing during development.
I made a PlayCanvas-hosted build recently (https://playcanv.as/b/…) and it seems to still happen albeit much less frequently.
I’m also told that it appears in our Sentry diagnostics when deployed on our own hosting, although I don’t know to what frequency. It seems less frequent to me but its anecdotal.
I’ve sent you a DM for follow-up thanks so much for the assistance here.