thisbejim / Pyrebase

A simple python wrapper for the Firebase API.
2.05k stars 526 forks source link

Node Must be explored/pushed to first through code before retrieving #335

Closed wmustafaAwad closed 4 years ago

wmustafaAwad commented 4 years ago

When retrieving data using: db.child("my_node_name").get().. the data is not retrieved (i.e. None is returned).. unless I have pushed to that node, from the code, previously.

To replicate, try the following: 1- Manually add a node to your firebase database, call it "my_node" and put any other child node with a value in it. 2- From the code, access it using db.child("my_node").get() 3- None value will be returned 4- Now, try pushing anything to the node "my_node". For example: db.child("my_node").push({"any_key": 5.0}) 5- Now, use the exact same line as 1 with db.child("my_node").get() and it will return the previously manually added value.

wmustafaAwad commented 4 years ago

This was probably a temporary issue with my firebase database.