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.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

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

I can't download files by command

I can't download files by command

Marcos Paris
Explorer | Level 4

Download files with wget

 

Hello gentlemen of the community.

I have a problem.
I've been using "wget" since June 2021 to download a file and since then everything has been fine.
But this morning the command does not respond and gives clues as to what may be happening.

 

Below is the command I use and it was working:

wget -q --no-check-certificate https://www.dropbox.com/s/4mf0awazg0z0ols/TESTE.7z -O TESTE.7z

 

It simply skips a line without any message.
I thank you in advance for your support.
Marcos

9 Replies 9

Nancy
Dropbox Staff

Hi @Marcos Paris, thanks for posting here today!

 

In order to isolate this further, can you clarify if you’re having any type of issue when downloading your files normally from Dropbox, without using wget? 

 

Let me know, and we’ll take it from there.


Nancy
Community Moderator @ Dropbox
dropbox.com/support


Heart Did this post help you? If so, give it a Like below to let us know.
:arrows_counterclockwise: Need help with something else? Ask me a question!
:pushpin: Find Tips & Tricks Discover more ways to use Dropbox here!
:arrows_counterclockwise: Interested in Community Groups? Click here to join!

Marcos Paris
Explorer | Level 4

Hi Nancy, 

 

Thank you for contacting me and I would like to know more about my problem.

Download via browser using the link generated by dropbox. The answer is yes.

 

https://www.dropbox.com/s/2kpb6e3fs5wmigw/DADOS.7z?dl=0

 

The reason for using "wget" was to slow down user operations.
I have a batch file or *.bat that makes everything automatic.

1st download, unzip, move to the defined folder and finally delete the zipped file.

And this is the command I used normally and since last Sunday it stopped.

 

wget -q --no-check-certificate https://www.dropbox.com/s/2kpb6e3fs5wmigw/DADOS.7z -O DADOS.7Z

 

Thanks for helping me,
Marcos Paris

Nancy
Dropbox Staff

Thanks for sending over more details, Marcos! 

 

I’ve moved your post to this part of the Community, as l think you’ll be better assisted here. 

 

If you have any more details that may be helpful, feel free to add them in this thread. 

 

Cheers.


Nancy
Community Moderator @ Dropbox
dropbox.com/support


Heart Did this post help you? If so, give it a Like below to let us know.
:arrows_counterclockwise: Need help with something else? Ask me a question!
:pushpin: Find Tips & Tricks Discover more ways to use Dropbox here!
:arrows_counterclockwise: Interested in Community Groups? Click here to join!

Greg-DB
Dropbox Staff

@Marcos Paris To debug this, try running this with "-v" instead of "-q". That should enable more verbose output that should help identify the issue.

Marcos Paris
Explorer | Level 4

Good Greg-DB!

 

1) Changing the -q to -v, you have already validated the Dropbox link and located the path of the file "DADOS.7z"

2) We now know there was a 100% connection to Dropbox.

3) Here's the problem:

 

It asks to open the SSL certificate, but gives an alert protocol version. Unable to establish SSL connection and abort.

After that I tried removing the command "--no-check-certificate", but we have the same behavior described above.

It's a little deeper.

 

This was the execution response:

 

--2022-04-20 19:49:49-- https://www.dropbox.com/s/2kpb6e3fs5wmigw/DADOS.7z
Resolving www.dropbox.com... 162.125.5.18
Connecting to www.dropbox.com|162.125.5.18|:443... connected.
OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Unable to establish SSL connection.


Thank you so much for your help and let's get there!!!
Marcos Paris

Marcos Paris
Explorer | Level 4

Thank you very much Nancy,

 

There was even an interaction com @Greg-DB 

 

To its success for circulation in 2022.

Marcos Paris

Greg-DB
Dropbox Staff

Thanks, that error indicates an issue establishing the TLS connection. Specifically, it looks like wget is attempting to use TLS 1.0, but Dropbox recently retired support for TLS 1.0 and 1.1. The Dropbox servers now only support connections using TLS 1.2. You'll need to update your app/network client/environment to use TLS 1.2 in order to make this request. For instance, you may need to refer to the documentation for 'wget'.

 

Marcos Paris
Explorer | Level 4

Hello Greg-DB,

 

I checked the "Wget" documentation and there I found the command that validates this Dropbox update to support connections using TLS 1.2. that you spoke.

 

Below is the command that resolves the connection:
wget --secure-protocol=TLSv1_2

 

Your help was extremely accurate and very important in solving my problem.
This is a type of occurrence that demands a much finer abstraction, and finding the solution alone would be almost impossible.

Your stance is compatible with empathy, but I think it has more to do with compassion, because it's putting yourself in the other's shoes and sharing a solution.

 

Thank you so much Greg-DB and may God always do justice in your life.

To its success for circulation in 2022.
Marcos Paris from Brazil

AlaDave
Explorer | Level 4

>>wget --secure-protocol=TLSv1_2

 

Thank you for posting this answer. It was super helpful!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    AlaDave Explorer | Level 4
  • User avatar
    Marcos Paris Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?