cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ERR_CONNECTION_TIMED_OUT

ERR_CONNECTION_TIMED_OUT

newtgu
Explorer | Level 3

hi, as a developer,

I want to creat a temporary link to download content in dropbox, and I use code like this:

DbxRequestConfig config = DbxRequestConfig.newBuilder("dropbox/java-tutorial").build();
DbxClientV2 client = new DbxClientV2(config, accessToken);

GetTemporaryLinkResult temporaryLinkResult = client.files().getTemporaryLink(id);

 but now this temp link I can not download content which I could download contents before.

I want to know why? or what can I do to resolve this issue? 

this is the temp link: https://uce6fa5f9ed4a5e6fd0edcedee63.dl.dropboxusercontent.com/cd/0/get/BYsbTgdmqjNXXj4Bd-JxbcnxELJX...

4 Replies 4

Greg-DB
Dropbox Staff

Can you share the rest of the steps/code to reproduce the error you're getting? Specifically, you shared the code to retrieving the link itself, but how are you accessing the link that then fails?

 

I can use the code you shared to retrieve a temporary link, and accessing that link is working successfully for me.

 

Is there anything on your system/network connection, such as a firewall, proxy, VPN, anti-virus, etc., that may be interfering with connections to *.dl.dropboxusercontent.com?

newtgu
Explorer | Level 3

hi, Dropboxer,

  we found the root case,  Because you put a # at the end of the return value

   This # is useless and can be deleted. the link is still work.

https://uc420ae6c46a4e62138a5c3d5f03.dl.dropboxusercontent.com/cd/0/get/BYxCXMcfHVif8r4o6WMSns8GYESi...  -->

https://uc420ae6c46a4e62138a5c3d5f03.dl.dropboxusercontent.com/cd/0/get/BYxCXMcfHVif8r4o6WMSns8GYESi... 

 

I want to know why you guys put a useless # at the end of the link?

and will you make similar adjustments in the future?

 

Greg-DB
Dropbox Staff

Thanks for following up. I'm glad to hear you tracked this down.

 

The "#" is a character for identifying the beginning of the "fragment" portion in a URI. It's a valid part of a URL, but it sounds like your HTTPS client isn't handling it properly. It's not strictly needed in this case though so you can remove it in your code to work around that. In any case, the Dropbox API spec doesn't guarantee its presence or absence, so I can't promise if it will always be included or not. I recommend making sure your code can handle either case.

Greg-DB
Dropbox Staff

Update: to help accommodate clients with this issue who can't apply a fix client-side, we're no longer returning the "#" at the end of these links.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    newtgu Explorer | Level 3
What do Dropbox user levels mean?