You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Simma's avatar
Simma
Explorer | Level 4
5 months ago

Consistent 500 error, no status text, from files_download_zip_to_file

Hitting this stack consistently.  I am using the Root namespace and this is attempting to download a personal folder as part of download a tree of personal and team folders.

File "C:\Users\PDS\git\dropzip\src\dropzip\dropzip.py", line 176, in download_folder
    dbx.files_download_zip_to_file(target, folder)
  File "C:\Users\PDS\AppData\Local\pypoetry\Cache\virtualenvs\dropzip-ocl8TPfY-py3.11\Lib\site-packages\dropbox\base.py", line 1525, in files_download_zip_to_file
    r = self.request(
        ^^^^^^^^^^^^^
  File "C:\Users\PDS\AppData\Local\pypoetry\Cache\virtualenvs\dropzip-ocl8TPfY-py3.11\Lib\site-packages\dropbox\dropbox_client.py", line 326, in request
    res = self.request_json_string_with_retry(host,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PDS\AppData\Local\pypoetry\Cache\virtualenvs\dropzip-ocl8TPfY-py3.11\Lib\site-packages\dropbox\dropbox_client.py", line 476, in request_json_string_with_retry
    return self.request_json_string(host,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PDS\AppData\Local\pypoetry\Cache\virtualenvs\dropzip-ocl8TPfY-py3.11\Lib\site-packages\dropbox\dropbox_client.py", line 595, in request_json_string
    self.raise_dropbox_error_for_resp(r)
  File "C:\Users\PDS\AppData\Local\pypoetry\Cache\virtualenvs\dropzip-ocl8TPfY-py3.11\Lib\site-packages\dropbox\dropbox_client.py", line 620, in raise_dropbox_error_for_resp
    raise InternalServerError(request_id, res.status_code, res.text)
dropbox.exceptions.InternalServerError: InternalServerError('8cb6778eb30e4e658477df2c9c58a7cc', 500, '')

Anyone able to shed any light?  Sadly no useful text in the error, just an empty string!

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Thanks for the report! Can you share the full steps/code/parameter values to reproduce this error? Don't share any access token, refresh token, or app secret though.

    • Simma's avatar
      Simma
      Explorer | Level 4

      See the tool that my husband has written here: https://github.com/papadeltasierra/dropzip

      An attempt to logon as myself and then download with the source folder as `""` appears to start to download my personal folder (as a ZIP file) but then throws the errors reported above.  This happens ever time.

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        Thanks! We'll look into it and follow up here with any updates.