You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
TejaVarma
8 years agoExplorer | Level 4
com.dropbox.core.NetworkIOException: timeout
Here is code
try {
//Download file for DropBox 2
DbxDownloader<FileMetadata> downloadData = dbxClientV2.files().download(dBoxPath);
ouputStream = new FileOutputStream(localFile);
downloadData.download(ouputStream);
//Download file for DropBox 1
/* DropboxAPI.DropboxInputStream fd = dropboxAPI.getFileStream(dBoxPath, null);
ouputStream = new FileOutputStream(localFile);
fd.copyStreamToOutput(ouputStream, null);*/
}/* catch (DropboxException err) {
Log.e(LOG_TAG, "DropboxAPI throws this exception : " + err.getMessage());
success = false;
}*/ catch (Exception err) {
Log.e(LOG_TAG, "Exception thrown for file at " + dBoxPath + " err msg :" + err.getMessage());
success = false;
} finally {
if (ouputStream != null) {
ouputStream.close();
}
}
- Greg-DBDropbox StaffDoes this happen on every attempt, or only occasionally? Can you share the full error output?
- TejaVarmaExplorer | Level 4
It is happening some time. Right now I am not getting error. Once I face issue, I will post you.
- TejaVarmaExplorer | Level 4
Hi,
I am facing same issue while I am downloading .zip file of 162MB
com.dropbox.core.NetworkIOException: Unable to resolve host "content.dropboxapi.com": No address associated with hostname
I am having there files 162MB, 300KB, 250MB , I made for loop to download each item
1. When I am trying to download first file I gotNetworkIOException.
2. For 2nd file it was downloaded.
3. It was downloaded but only 500KB, it did not download 250MB
Here is code I am working
try {
//Download file for DropBox 2
DbxDownloader<FileMetadata> downloadData = dbxClientV2.files().download(dBoxPath);
ouputStream = new FileOutputStream(localFile);
downloadData.download(ouputStream);
} catch (Exception err) {
Log.e(LOG_TAG, "Exception thrown for file at " + dBoxPath + " err msg :" + err.getMessage());
success = false;
} finally {
if (ouputStream != null) {
ouputStream.close();
}
}NetworkIOException might be issue in Internet. But why it was downloaded only 500KB instead of 250MB. Please suggest me
Thanks
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 days agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!