cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Would you some tips on how to search images on Dropbox? Get some expert advice from our very own Lainie right 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: 
1
Ask
2
Comments

Re: 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

Re: Change in dropbox folder triggers Webhook twice.

Feifei_xiong
Explorer | Level 4
Got it, thanks.
Need more support?