cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know more about how Community ideas impact Dropbox development? Check it out here

Discuss Dropbox Developer & API

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

Re: 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

Re: ERR_CONNECTION_TIMED_OUT

Greg-DB
Dropboxer

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?

Re: ERR_CONNECTION_TIMED_OUT

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?

 

Re: ERR_CONNECTION_TIMED_OUT

Greg-DB
Dropboxer

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.

Re: ERR_CONNECTION_TIMED_OUT

Greg-DB
Dropboxer

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?