thisbejim / Pyrebase

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

issue with pyrebase setup, python environment, and/or firebase #448

Open sydneyzhang18 opened 11 months ago

sydneyzhang18 commented 11 months ago

I'm trying to retrieve the last piece of data added to my firebase database using data = db.child("problem").order_by_key().limit_to_last(1).get().val() but I get the attached errors, which don't occur when I simply do db.child("problem").get().val(). All of the code works accurately on my collaborator's device so I'm unsure where the problem is (whether it's my device's python set up, my pyrebase installation, or any settings I missed). From what I can tell, the errors I get seem to be related to pyrebase mainly? Any insight would be really helpful!

screenshot_2023-08-04_at_12 55 06_pm_720

Pranzal360 commented 7 months ago

could be better if you provide more snippet of your code, of how you're working with order_by_key(), and also check your security rules.