After we upgrade our Unity from 2017 to 2019.1.10f1 and 2019.1.14f1.
We have started to receive strange reports from our players about error alert in WebGL version of our game. Some players sent several screenshots with alert.
Text on alert:
See your browser JavaScript console for more info.
The error was:
TypeError: null is not an object (evaluating 'xhr.response.byteLength')```
That was elusive bug. We try to figure out whats going wrong, but our team failed to reproduce this issue.
We instruct our support guy to deeply communicate with players that faced this issue and one time he succeeded with bunch of screenshots of game and browser console.
We found bug in Unitys WebGL XHR Caching system CachedXMLHttpRequest.js and found disappointing thing that bug in phase when data already put in cache. And system start build string to console.log about success download.
If you faced with this type of issues just substitute file:
```{UnityRoot}\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\prejs\CachedXMLHttpRequest.js```
with attached one.
And let me know about further behavior of your app. Issue is gone?
PS. For Unity3d WebGL Team, you can freely use this fix in folowing patches :)
[4991063--487331--CachedXMLHttpRequest.js|attachment](upload://8ORDFHhNQHHE0ygvx8x0PUziY0p.js) (8.42 KB)