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

timrobinson33's avatar
timrobinson33
Helpful | Level 5
2 years ago

dbx.filesListFolder and dbx.sharingGetSharedLinkMetadata no longer return file path

Hello,

 

I have built an application that integrates with Dropbox using the nodejs SDK. It has been working fine for the past few months but has just stopped working overnight

 

The reason seems to be that the filesListFolder and sharingGetSharedLinkMetadata APIs no longer return the path_lower or path_display properties.

 

I don't see any change in the documentation, and my integration cannot work without the ability to retrieve the path from a shared link

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

    If the path values are not set, that indicates that the requested item is not mounted in the root for that call. For example, a user may have unmounted a shared folder containing the item in their account.

     

    Since this depends on the state of the account, if you need help with this, I suggest opening an API ticket privately with the details of the issue so we can take a look and advise.

      • timrobinson33's avatar
        timrobinson33
        Helpful | Level 5

        for anyone else who has a similar issue, I was able to fix it by extracting the root namespace and creating a new dbx object using that root namespace like this:

         

        var dbx = new Dropbox({ "refreshToken": refreshToken, "clientId": appKey, "clientSecret": appSecret});
        const rootNamespaceID = (await dbx.usersGetCurrentAccount()).result.root_info.root_namespace_id
        dbx = new Dropbox({"refreshToken": refreshToken,"clientId": appKey,"clientSecret": appSecret,

             "pathRoot": JSON.stringify({".tag": "root", "root": rootNamespaceID})});

         

         

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,917 PostsLatest Activity: 4 hours ago
334 Following

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 or Facebook.

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!