We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.

Forum Discussion

Feifei_xiong's avatar
Feifei_xiong
Explorer | Level 4
7 years ago

Change in dropbox folder triggers Webhook twice.

Hey,

 

I have configured Webhook in a dropbox app to listen to any changes on a shared folder. It works fine in my local development envrionment(I am using ngrok to expose my local web server localhost:3000). I only got 1 webhook call each change. However, whenever any file change, including upload, rename, delete and so on, my staging service is getting two webhook calls per action, which is very strange. The two webhooks come to my staging service have different user parameters. 

 

And with two webhook coming, our server creates duplicated content. Any help?

 

Thanks,

Feifei

  • You will get webhook notifications for any changes in the accounts of any/all users connected to your app. So, if you have multiple users connect to your app, and multiple users are in the same shared folder, you will receive multiple webhook notifications when something changes in that shared folder; one for each member that is connected to your app.

    You mentioned you are getting different user values, so it sounds like that's probably what's going on.

    If something doesn't appear to be working as expected, please feel free to open an API ticket with the details:

    https://www.dropbox.com/developers/contact
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    You will get webhook notifications for any changes in the accounts of any/all users connected to your app. So, if you have multiple users connect to your app, and multiple users are in the same shared folder, you will receive multiple webhook notifications when something changes in that shared folder; one for each member that is connected to your app.

    You mentioned you are getting different user values, so it sounds like that's probably what's going on.

    If something doesn't appear to be working as expected, please feel free to open an API ticket with the details:

    https://www.dropbox.com/developers/contact

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,875 PostsLatest Activity: 5 hours ago
325 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!