Using xhr to load some stuff to browser sometimes I get this error :
GET https://www.example.com/app/sources/voices/Frozen%202013/61f1c876b4ba1d1338a07e83/tutor/1.wav net::ERR_HTTP2_PROTOCOL_ERROR 200
since no one on Earth have fixed ERR_HTTP2_PROTOCOL_ERROR 200 Error yet :) I need to catch this error in order to do something with it when it occurs right ?
Here is what I tried to catch it :
const xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.responseType = 'blob';
xhr.onerror = event => {
console.log('xhr.onerror:: ', event);
}
xhr.send();
The above onerror event fires correctly when the error happens But gives me this:
To be honest I can't find the file path in which reproduces the error I mean I need this URL which give the error :
https://www.example.com/app/sources/voices/Frozen%202013/61f1c876b4ba1d1338a07e83/tutor/1.wav
How can I get the file path that gives the ERR_HTTP2_PROTOCOL_ERROR 200 error ?