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

Forum Discussion

Legrend_Sargentpc's avatar
Legrend_Sargentpc
Explorer | Level 3
2 years ago
Solved

Zapier - 409 error path/not found

Hello everyone!

 

I'm trying to get the meta data for a file so I can access the "shared_folder_id" and then add a member (or group if possible) to that folder. It's on a team folder.

I'm using Zapier as I want this to be automated upon a trigger.


The issue I get is during a Post request to get_metadata, the path cannot be found (error 409)


I first find a folder, which returns correctly.

 

Then I run a custom request (http) for: 

{
"include_deleted": false,
"include_has_explicit_shared_members": false,
"include_media_info": false,
"path": "<path from the previous find folder path in zap>" }

I've also verified this folder path does exist (I can see it, and it's all spelt correctly). This leads me to believe it's a access or permission error, but I'm not confident.
 
Headers:
Authorization Bearer <my actual token id>
Content-Type application/json
Dropbox-API-Select-Admin. dbmid:<my actual token id for myself as an admin user>
 
The folder I'm accessing has myself listed as access, and I'm also included in a group that has access.
 
I've selected all permissions on my app to write/edit everything, generated a new auth token after saving, and I still have issues. 
 
Any help is much appreciated. I'm happy to provide any additional information as well.

Thanks in advance!
  • Greg-DB's avatar
    Greg-DB
    2 years ago

    It looks like you meant to call /2/files/get_metadata, but based on the error message in the response body you actually called /2/sharing/get_folder_metadata (which takes different parameters, and so the call failed). Make sure you've configured that to call /2/files/get_metadata if that's what you intended.

12 Replies

Replies have been turned off for this discussion
  • bblu2095's avatar
    bblu2095
    Collaborator | Level 9
    2 years ago

     

    There isn't a response body for the API call, that's the thing. There is no "Data out" tab in Zapier, it just shows the Zapier error for "argument of type 'NoneType' is not iterable"

     

    Here is what the logs look like:

    And the Dropbox API documentation says:

     

  • Legrend_Sargentpc's avatar
    Legrend_Sargentpc
    Explorer | Level 3
    2 years ago

    I wish I still had the code for this, but now I remember this is where I stopped.   

     

    So I was getting a successful return (code 200), and the person was added, but it wasn't consistent because some folders only had a shared_id and some only had a parent_shared_id.  I didn't understand the difference, or how to determine which folder is which, so I had to give up on it. It looks like some of our sub folders are one type, and others are another.

     

    I believe the issue comes down to shared_id vs. parent_shared_id.  Sorry I wasn't able to help after all. I hop you find a solution an would love to know what it is! 

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!