Comments (8)
Hi @3rror404,
I reviewed your issue and found that this problem could be reproduced, when you try to upload image with large size. We will research, what is causing this problem for Android. Regarding to that I am attaching link to a sample project, where the problem could be reproduced.
from nativescript-background-http.
Was this ever fixed? I'm still having the same problem on Android.
from nativescript-background-http.
Hi @nraboy,
I have to confirm that this is still a real issue. We will research the reason for this problem and will verify, whether this is something related to android-upload-service. Unfortunately, I cannot commit to an exact time frame when this will be ready.
from nativescript-background-http.
This plugin is working for me very well, firing the Complete Event, uploading images 7 to 8 MB size, is this issue related to bigger files only???
from nativescript-background-http.
To be clear, it is uploading fine for me, however, the complete
event is not firing for me. This is the case for uploads of any size, big or small. It isn't particularly useful if I don't know the upload has finished.
I have been testing on Android 6.0 if that makes a difference.
Best,
from nativescript-background-http.
+1, android only fires the error event for myself.
from nativescript-background-http.
Please see #89 for more information about this issue. It seems the problem is with the https://httpbin/post test service itself. The response it sends back is too large when you upload large files and it cannot be handled correctly. If you test with another service that just responds with "File uploaded OK" or something similar, the complete event should fire as expected.
from nativescript-background-http.
Hi, I had the same error that the complete event was not triggered.
I was able to fix it by setting the statusCode to 200 in my server, as soon as the file has successfully been uploaded.
For example:
app.post("/upload", function(req, res){
// .. Upload stuff and file saving
// as soon as the file is uploaded
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('OK\n');
});
from nativescript-background-http.
Related Issues (20)
- IOS internal server error 502
- Ability to set timeout HOT 1
- Does this plugin work to upload images to S3 buckets? HOT 1
- Access Server Response After Upload Completed
- Nativescript 7 Error HOT 11
- Weird task event data HOT 2
- [IOS] Failed to issue sandbox HOT 1
- Use with nativescript-ssl-pinning
- Class constructor Observable cannot be invoked without 'new'. HOT 5
- Error on upload image, no response and respondeCode -1 HOT 6
- An uncaught Exception occurred on "pool-3-thread-1" thread. HOT 1
- An uncaught error on background image uploading HOT 8
- An uncaught Exception : Context.startForegroundService() HOT 1
- Image error after upload
- 503 error after upgrade to NS 7
- Targeting Android Version 31 - crashes with java.lang.reflect.InvocationTargetException HOT 12
- [Android] Unable to handle error response coming from server
- IOS upload - Payload too large
- illegalArgumentException: defaultNotificationChannel HOT 2
- Nativescript multipartUpload fails/crashes in android 31 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-background-http.