-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
I was running RN 0.42 and saw this. I then upgraded to 0.46.4 and am still encountering the same results. My device is running Android 7.
The XMLHttpRequest
object fires progress events, but returns 0 bytes loaded until completed.
var xhr = new XMLHttpRequest();
xhr.open("GET", "/my/api/with/content-length", true);
xhr.addEventListener('progress', function(event) {
if (event.lengthComputable) {
console.log(event.loaded, event.total);
}
}, false);
xhr.send()
My console shows lots of progress events and the request completes successfully, but loaded
is always 0
10-14 21:41:59.138 17907 19666 I ReactNativeJS: 0, 4183950
10-14 21:41:59.139 17907 19666 I ReactNativeJS: 0, 4183950
10-14 21:41:59.140 17907 19666 I ReactNativeJS: 0, 4183950
10-14 21:41:59.141 17907 19666 I ReactNativeJS: 0, 4183950
10-14 21:41:59.142 17907 19666 I ReactNativeJS: 0, 4183950
10-14 21:41:59.143 17907 19666 I ReactNativeJS: 0, 4183950
10-14 21:41:59.143 17907 19666 I ReactNativeJS: 0, 4183950
10-14 21:41:59.144 17907 19666 I ReactNativeJS: 0, 4183950
10-14 21:41:59.145 17907 19666 I ReactNativeJS: 0, 4183950
10-14 21:41:59.146 17907 19666 I ReactNativeJS: 0, 4183950
10-14 21:41:59.147 17907 19666 I ReactNativeJS: 0, 4183950
10-14 21:41:59.148 17907 19666 I ReactNativeJS: 0, 4183950
10-14 21:41:59.149 17907 19666 I ReactNativeJS: 0, 4183950
10-14 21:41:59.150 17907 19666 I ReactNativeJS: 0, 4183950
10-14 21:41:59.150 17907 19666 I ReactNativeJS: 0, 4183950
10-14 21:41:59.151 17907 19666 I ReactNativeJS: 0, 4183950
10-14 21:41:59.152 17907 19666 I ReactNativeJS: 0, 4183950
10-14 21:41:59.153 17907 19666 I ReactNativeJS: 0, 4183950
Using Chrome the same code/endpoint successfully reports the loaded progress.
Metadata
Metadata
Assignees
Labels
Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.