Open imhoze opened 3 years ago
Tried to use another backend, but unfortunately, the result is the same bad. Usually it riches 100% and then throw 'timeout' error
var http = require('http'),
path = require('path'),
os = require('os'),
fs = require('fs');
var Busboy = require('busboy');
http.createServer(function(req, res) {
if (req.method === 'POST') {
var busboy = new Busboy({ headers: req.headers });
busboy.on('file', function(fieldname, file, filename, encoding, mimetype) {
var saveTo = path.join(os.tmpDir(), path.basename(fieldname));
file.pipe(fs.createWriteStream(saveTo));
});
busboy.on('finish', function() {
res.writeHead(200, { 'Connection': 'close' });
res.end("That's all folks!");
});
return req.pipe(busboy);
}
res.writeHead(404);
res.end();
}).listen(8000, function() {
console.log('Listening for requests');
});
I also can observe that the request is done successfully on the server-side, the received file has been stored and response headers have been sent.
Im having the same issue here
hello i found solution might help you in node node modules react-native-background-upload/android/src/main/java/.../RnUploader/UploaderMoudule increase connectTimeout var to whatever you want i did that and now timeout error is gone
Having the same issue, request fails with error 'timeout'. File is a bit larger. On my backend I get the correct logs and everything.
Hello everyone, I'm currently testing this library on Android 10 with different types of internet connections, including different distances between server and client and different upload speeds (GPRS, HSCSD).
When I use a poor internet connection it's unable to complete. The progress riches 57% and then it ends with a 'timeout' error.
My backend on a nodejs looks like this
On the server-side, I observe the following exception is rising right at the same moment: