Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

Marcos Paris's avatar
Marcos Paris
Explorer | Level 4
4 years ago

I can't download files by command

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

  • Nancy's avatar
    Nancy
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    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.

  • Marcos Paris's avatar
    Marcos Paris
    Explorer | Level 4
    4 years ago

    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's avatar
    Nancy
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    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.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    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's avatar
    Marcos Paris
    Explorer | Level 4
    4 years ago

    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's avatar
    Marcos Paris
    Explorer | Level 4
    4 years ago

    Thank you very much Nancy,

     

    There was even an interaction com Greg-DB 

     

    To its success for circulation in 2022.

    Marcos Paris

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    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's avatar
    Marcos Paris
    Explorer | Level 4
    4 years ago

    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's avatar
    AlaDave
    Explorer | Level 4
    3 years ago

    >>wget --secure-protocol=TLSv1_2

     

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

About Dropbox API Support & Feedback

Node avatar for 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!