Pyrebase
Pyrebase copied to clipboard
'Order by ...' is not working
Hello, I had made a webpage to show some firebase data. It was working perfectly.
And my service was stop last week. I can't see the data now. But I did not editable nothing on code. The service just stopped it. The flowing error message is appers on terminal "requests.exceptions.HTTPError: [Errno 400 Client Error: Bad Request for url: .......] { "error" : "orderBy must be a valid JSON encoded path" }".
I don't know if the issue is on firebase or on pyrebase. Because the code was working and, someday, without edits, stopped. Do someone can help me with it?
check this issue https://github.com/thisbejim/Pyrebase/issues/294 you will understand what happened the problem is with the library
@DanJhonatan @abdelwahebmoalla Have you got the solution.I am also getting same error.Any suggestion .Thanks in advance
@DanJhonatan @abdelwahebmoalla @Narender-350 I also get the same error for the code which was running properly until some days before. Have anyone found the solution to this problem? Thanks in advance.
It's working in my fork https://github.com/nhorvath/Pyrebase4 was a problem with double escaping quotes.
@nhorvath Thank you for your quickly answer. I updated my project to user your fork and it is working now. Thanks for help the community. Great job!
@thisbejim Is it possible to get @nhorvath's change pulled into master?
Love this module and great work all! Just wondering when will 4.0 be available pypi?
Remove the word pyrebase from the file and name in the settings, example:
pyrebaseConfig.py change to config.py or in firebase = pyrebase.initialize_app(config)
Workaround taken from here
# Temporarily replace quote function
def noquote(s):
return s
pyrebase.pyrebase.quote = noquote