You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2021/10/27 00:49:07 UTC
[GitHub] [cordova-plugin-file-transfer] allidoisace opened a new issue #321: Request Timeout on Big File (180MB)
allidoisace opened a new issue #321:
URL: https://github.com/apache/cordova-plugin-file-transfer/issues/321
# Bug Report
## Problem
```
[BackgroundTask] Background Task 1 ("Called by CordovaPlugins, from -[CDVFileTransfer uploadData:command:]"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
NSURLConnection finished with error - code -1001
File Transfer Error: The request timed out.
```
### What is expected to happen?
Not timeout.
### What does actually happen?
Times out.
## Information
<!-- Include all relevant information that might help understand and reproduce the problem -->
Using latest `master` branch code.
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
Ensure file is large. If the timeout doesn't occur, increase file size. The current environment is in a K8's cluster, so there may be some overhead there on my end.
```
const fileURL = file:// ...
const options: FileUploadOptions = {
fileKey: 'file',
fileName: fileURL.substring(fileURL.lastIndexOf('/') + 1),
mimeType: 'text/plain',
};
// TODO Pass created Runfile uuid and version
const params: any = {};
params.value1 = 'test';
params.value2 = 'param';
options.params = params;
const ft = new FileTransferObject();
ft.upload(
fileURL,
encodeURI(`http://example.com`),
options,
);
```
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you experiencing the issue? -->
K8's/Docker with iOS, iPad Pro 12.9
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
cordova-plugin-file: 6.0.2
cordova-plugin-file-transfer: github:apache/cordova-plugin-file-transfer#master
Capacitor: 3.2.4
Ionic: 5.8.4
Ionic CLI: 6.17.1
XCode: 13
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [x ] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org