cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done 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: 

Change in dropbox folder triggers Webhook twice.

Change in dropbox folder triggers Webhook twice.

Feifei_xiong
Explorer | Level 4

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

1 Accepted Solution

Accepted Solutions

Re: Change in dropbox folder triggers Webhook twice.

Greg-DB
Dropboxer
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

View solution in original post

2 Replies 2

Re: Change in dropbox folder triggers Webhook twice.

Greg-DB
Dropboxer
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

View solution in original post

Re: Change in dropbox folder triggers Webhook twice.

Feifei_xiong
Explorer | Level 4
Got it, thanks.
Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Feifei_xiong Explorer | Level 4
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?