cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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: 

Webhooks delay

Webhooks delay

Dinesh R.2
New member | Level 1

We have been using webhooks in our app for processing changes to a user's library. We have run into an issue with the v2 /list_folder/continue with cursor calls.

 

Whenever we get a user_id from webhooks, our app makes a call to the list_folder/continue API with the most recent cursor for the  user (which we persist in our backend store). However, whenever we make this call we invariably get no entries back. We have noticed that we need to add a delay of 5 seconds or more to get the entries back. 

I am wondering why there is such a noticeable lag to get the changes to a user's library. Also, our app is a "development" dropbox app. Would apps with "production" status have a more responsive experience when processing dropbox changes?

 

 

4 Replies 4

Greg-DB
Dropbox Staff

Production status wouldn't help here, as that just enables more users to connect to your app.

Are you using include_media_info=true when you originally get these cursors though?

Dinesh R.2
New member | Level 1

That is correct. We need the media info.

Greg-DB
Dropbox Staff

Thanks! That's likely the cause here then. The media information can take some time to generate, before which the entries can't be returned for these cursors. We're always working to keep these delays to a minimum, but they can vary. Unfortunately I don't have a perfect solution to offer here, but you may want to just automatically retry after a little time when this happens.

Dinesh R.2
New member | Level 1

ok, thanks, Gregory! That makes sense. An automatic retry is what am planning to do for now, but it would be great if you could improve the experience at some point.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Dinesh R.2 New member | Level 1
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?