cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We've been busy working on some major updates to the Community, so check out what's changing, what’s staying the same and what you can expect from the Dropbox Community 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: 

files_list_folder returning 500 Internal Server Error

files_list_folder returning 500 Internal Server Error

Jagadeesh
Explorer | Level 4

# from src.dropbox_plugin.dropbox_extension import DropBoxExtension
import dropbox
import os

drop = dropbox.Dropbox(oauth2_access_token='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
oauth2_refresh_token='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
app_key='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', app_secret='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')


def get_all_files_from_public_url(dropboxs, root_folder, root_shared_link, all_files):
root_folder2 = ''
if root_folder:
root_folder2 = f'/{root_folder}'
entries = drop.files_list_folder(path=root_folder2, shared_link=root_shared_link)
print('done for')
while True:
for file in entries.entries:
if isinstance(file, dropbox.files.FolderMetadata):
get_all_files_from_public_url(dropboxs, os.path.join(root_folder, file.name), root_shared_link,
all_files)
else:
all_files.append(os.path.join(root_folder, file.name))
if not entries.has_more:
break
entries = drop.files_list_folder_continue(entries.cursor)

data = []
link = dropbox.files.SharedLink(url='https://www.dropbox.com/scl/fo/cycmeqthp4kerxusxo9yt/h?rlkey=r9zd7ee6r7chhnwrui59m94d4&dl=0')
get_all_files_from_public_url(
drop, '', link, data)

# 11.25.0

3 Replies 3

Greg-DB
Dropbox Staff

Thanks for the report! We're looking into it. I'll follow up here once I have an update for you.

Greg-DB
Dropbox Staff

This should be working again now. Please let us know if you're still seeing any issues. Thanks!

Jagadeesh
Explorer | Level 4

Yes this is resolved now, Thank you very much Greg.

 

..Jagadeesh

Need more support?
Who's talking

Top contributors to this post

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