Is the get_file_and_metadata call running successfully? It sounds like that error message is coming from your Firebase database method, so I'm afraid I can't be of much help here. You may want to refer to the documentation/support channels for that instead.
Also, note that you're using Dropbox API v1, which is deprecated. You should migrate to API v2.