Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
TejaVarma
9 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); ...
Greg-DB
Dropbox Community Moderator
9 years agoThe API v2 Java SDK doesn't offer progress listeners, but I'll be sure to pass this along as a feature request. I can't promise if or when this may be added to the SDK though.
The DNS issue wouldn't be specific to API v1. API v2 also uses the 'content.dropboxapi.com' hostname, so your system needs to be able to query the DNS records for that.
DNS is a way for computers to translate hostnames (like 'content.dropboxapi.com') into IP addresses, so the computer knows where to find the relevant servers. Your computer asks your DNS server(s) to do this translation.
I just checked on my side, and the Dropbox content and API servers do have correct DNS entries. There are many different DNS servers though, so you'll need to check why the particular DNS server(s) you're using occasionally are not returning these entries, causing this error.
The DNS issue wouldn't be specific to API v1. API v2 also uses the 'content.dropboxapi.com' hostname, so your system needs to be able to query the DNS records for that.
DNS is a way for computers to translate hostnames (like 'content.dropboxapi.com') into IP addresses, so the computer knows where to find the relevant servers. Your computer asks your DNS server(s) to do this translation.
I just checked on my side, and the Dropbox content and API servers do have correct DNS entries. There are many different DNS servers though, so you'll need to check why the particular DNS server(s) you're using occasionally are not returning these entries, causing this error.
Greg-DB
Dropbox Community Moderator
8 years agoI just wanted to follow up on this to let you know that the Dropbox API v2 Java SDK now offers progress listeners for uploads and downloads. This has been released in v3.0.9:
https://github.com/dropbox/dropbox-sdk-java/releases/tag/v3.0.9
There's an example of using it with with the uploadAndFinish method ( https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/DbxUploader.html#uploadAndFinish-java.io.InputStream-long-com.dropbox.core.util.IOUtil.ProgressListener- ) for an upload here:
It works the same way with file downloads; the download method ( https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/DbxDownloader.html#download-java.io.OutputStream-com.dropbox.core.util.IOUtil.ProgressListener- ) optionally takes a ProgressListener parameter the same way.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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, Facebook or Instagram.
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!