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

nabeards's avatar
nabeards
Helpful | Level 6
2 years ago

files/list_folder API returns no entries after using new Shared Links

With the new Shared Links released recently I am now getting an empty list of files available at the Shared Link URL. I am calling the `files/list_folder` API endpoint with the `shared_link` specified as a URL (per https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder ). Previously, the `entries` returned would have the list of files available at the shared link. Now I just get an empty array. I have confirmed the files are there, and have created new Share Links on folders I previously shared without issue, and they are now broken.

 

Can you please either fix this issue or inform me how I am supposed to view the contents of these Shared Links now?

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

  • AgentConDier's avatar
    AgentConDier
    Explorer | Level 4

    Same issue here. I have been using the same code and shared link for years, which stopped working two days ago.

    This curl request, as generated by https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder should work as fas as I can tell:

    curl -X POST https://api.dropboxapi.com/2/files/list_folder \
      --header 'Authorization: Bearer [redacted]' \
      --header 'Content-Type: application/json' \
      --data '{"path":"","shared_link":{"url":"https://www.dropbox.com/sh/6kzom2lt4ahhr2c/AAAGC0_LBkp5htv1X8tUyOl9a"}}'

     But the response has an empty entries array, and has_more is false. The files in the shared link show up just fine in a browser.

    • Здравко's avatar
      Здравко
      Legendary | Level 20

      Oh... As seems, there is a some new bug in Dropbox API. Let's hope will be fixed by Dropbox soon...

    • nabeards's avatar
      nabeards
      Helpful | Level 6

      Glad to see I'm not the only one seeing this issue. Does the Dropbox support team monitor these forums or do I need to contact support via our business account?

      • Здравко's avatar
        Здравко
        Legendary | Level 20

        nabeards, In general it's monitored, but during weekend this monitoring is very weak. So it's likely, any move related to things mentioned here, to be performed no earlier than Monday (or even latter). Of course, Business accounts are served better, so if you want you can speed this up, probably. 😉

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

    Thanks for the report! We'll look into it and follow up here once we have an update on this.

    • atonderski_zen's avatar
      atonderski_zen
      New member | Level 2

      We are critically affected by this bug, and unable to download shared files programmatically. Please provide an update as soon as possible!

  • hero85's avatar
    hero85
    New member | Level 2

    I am also in the same boat, working application since many months suddenly stopped working on fetching the 0 entries for the shared folder.

    This is effecting me very badly, Did all my best, spent 3 days and found its a serious bug in the Dropbox api due to any recent changes at their end.

     

    Request for the earliest possible resolution.

     

    Thanks

  • Jagadeesh's avatar
    Jagadeesh
    Explorer | Level 4

    Hi

    We are using dropbox.files.SharedLink with dropbox.files_list_folder to download shared links, and it stopped working since last night. we are getting empty list for "entries" while the folder does have some files. Below is the code:

     

         links = ["https://www.dropbox.com/xx/xx/xxxxxxxxxxx&dl=0"]
         dropbox = dropbox.Dropbox(oauth2_access_token=access_token, oauth2_refresh_token=refresh_token, app_key=app_key, app_secret=app_secret)
         filecount = {}
         all_files = []
         for link in links:
              filecount[link] = 0
              shared_link = dropbox.files.SharedLink(url=link)
              entries = dropbox1.files_list_folder(path='', shared_link=shared_link, limit=2000)
              while True:
                   filecount[link] += len(entries.entries) #  ***here entries.entries is an empty list
                   if not entries.has_more:
                       break
                   entries = dropbox1.files_list_folder_continue(entries.cursor)
         print(filecount)