Cordova ios File Transfer Error: The request timed out

552 views
Skip to first unread message

Aida Messadi

unread,
Jun 12, 2015, 8:58:47 AM6/12/15
to phon...@googlegroups.com
I'm using the FileTransfer plugin for downloading files.the issue is that with large files I have this error:
FileTransferError {
body = "";
code = 3;
"http_status" = 0;
target = "file:///Users/msuser/Library/Developer/CoreSimulator/Devices/AE92034C-D2D6-4067-A02B-EB21E2C29E14/data/Containers/Data/Application/F3AEFA35-6B7A-441A-A0EF-B5EFB7348C56/Documents/Download/4-box-metiers-neutre.mp4";}
2015-06-10 16:14:21.976 apps[27281:159543] File Transfer Error: The request timed out.

Jesse Monroy

unread,
Jun 12, 2015, 3:20:37 PM6/12/15
to phon...@googlegroups.com
And what is the problem? The server timed out.

Is the server address correct? Can you ping the server? Have you tested the server?

Kerri Shotts

unread,
Jun 12, 2015, 10:13:42 PM6/12/15
to phon...@googlegroups.com, aida.m...@gmail.com
Is the source reachable? Can you navigate to it directly (in your device's browser)? 


Aida Messadi

unread,
Jun 15, 2015, 4:17:51 AM6/15/15
to phon...@googlegroups.com
to Jesse Monroy
Yes the server address correct because the download of the same  file works well with the android application but in ios it gives the timed out error

Aida Messadi

unread,
Jun 15, 2015, 4:41:32 AM6/15/15
to phon...@googlegroups.com
to Kerri Shotts
yes the the source is reachable because with files like .jpg or .txt ,.pdf the download works well but with file like .mp4 I have the request timed out error

Mark Cornell

unread,
Jun 15, 2015, 6:52:55 AM6/15/15
to phon...@googlegroups.com

Possibly due to file size?

On Jun 15, 2015 3:41 AM, "Aida Messadi" <aida.m...@gmail.com> wrote:
to Kerri Shotts
yes the the source is reachable because with files like .jpg or .txt ,.pdf the download works well but with file like .mp4 I have the request timed out error

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rob Willett

unread,
Jun 15, 2015, 6:59:07 AM6/15/15
to phon...@googlegroups.com
It's not clear to me if you are having problems with MP4 on both android and iOS and that PDFs go through ok on both android and iOS

My first thoughts are file size and web server timouts. It has that sort of smell to it

Check your server logs and post what your server is.

Rob

Aida Messadi

unread,
Jun 15, 2015, 8:11:57 AM6/15/15
to phon...@googlegroups.com
I have the problem only in ios with large file 

Jesse Monroy

unread,
Jun 15, 2015, 4:48:38 PM6/15/15
to phon...@googlegroups.com
The error you are getting suggests the server is not responding.

  • Since you have downloaded smaller files, file size is one thing to check (as has been suggested).
  • It could also be the server does not recognize your request and ignores it. And that would suggest an ultra-secure server, or a not well designed server. Check the server logs, if you can.
  • You will also want to check that your request from the server is equivalent on both the Android and the iOS versions.

 Best of Luck

Jesse

Alexandru Medesan

unread,
Dec 13, 2016, 10:44:26 AM12/13/16
to phonegap
Have you found a solution for this?
Reply all
Reply to author
Forward
0 new messages