jsayol / vscode-firebase-explorer

Visual Studio Code extension to explore and manage your Firebase projects
https://devlibrary.withgoogle.com/products/firebase/repos/jsayol-vscode-firebase-explorer
MIT License
148 stars 22 forks source link

Realtime database looks empty #30

Closed jof4002 closed 3 years ago

jof4002 commented 3 years ago

I setup realtime database for my project. But firebase explorer says Database is empty for this project.

Is there anything I can do to fix this problem ?

DT1000101 commented 3 years ago

I am having the same problem, but not in all of my projects. The only correlation that I have noticed so far is that all the projects with the Database location set to (us-central1) seem to work while the ones in (europe-west1) do not. Not sure if this is a coincidence though. Also, the extension only displays anything when the root path has one or more children. I.e. simply having your-proj-name-rtdb : null will not show anything in the extension, you need to add something to it.

jof4002 commented 3 years ago

Yes. our DB location set to (asia-southeast1). This seems to be the cause of the problem, Thanks for that info!

jof4002 commented 3 years ago

getURLForPath has this line : databaseURL = 'https://${instance}.firebaseio.com';

but my db's url ends with (name).firebasedatabase.app

I tested another DB at the (us-central1) and the URL ended with (name).firebaseio.com. And firebase explorer shows that DB well.