We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

Cato2021's avatar
Cato2021
Explorer | Level 4
4 years ago
Solved

I'm getting an Empty JSON Notification

I've created an app in the Dropbox for developers app console, set the permissions and now want to get notifications on the account's operations.
(I'm using Flask and a python code that is similar to the example (using Flask etc.)
BUT I'm getting empty notification 😞
This is how it looks:
{

'delta': {},

'list_folder': {}

}

 

Please assist, what could be the reason?

  • Greg-DB's avatar
    Greg-DB
    4 years ago

    You can reconnect an existing application (in development mode or not) the same way you did originally. E.g., you can use the "Generate" button on the app's page on the App Console to connect it to your own account, or otherwise use the OAuth flow.

3 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    Thanks for the report! It sounds like you've connected the account to the app without the "files.metadata.read" scope, which is required for receiving the relevant information in the webhook notification. (I'll also ask the team to see if we can update the implementation to skip sending empty notifications like this to avoid confusion.)

     

    You'll need to reconnected the account(s) with the 'files.metadata.read' scope enabled in particular.

     

    Note that just adding a scope to your app via the App Console does not retroactively grant that scope to existing connections. That being the case, to grant that scope, you'll need to reconnect the account(s) with that scope enabled

  • Cato2021's avatar
    Cato2021
    Explorer | Level 4
    4 years ago

    Thank you for your response!
    I disconnected my app and now want to reconnect but I can't find how.
    Can I connect my account to an app that is still in development?
    Or should I create another one?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    4 years ago

    You can reconnect an existing application (in development mode or not) the same way you did originally. E.g., you can use the "Generate" button on the app's page on the App Console to connect it to your own account, or otherwise use the OAuth flow.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers814 PostsLatest Activity: 2 years ago
275 Following

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 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!