You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

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

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
    3 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.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    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

      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 Staff rankDropbox Staff

        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.