Pyrebase icon indicating copy to clipboard operation
Pyrebase copied to clipboard

'Order by ...' is not working

Open danjho opened this issue 6 years ago • 9 comments

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?

danjho avatar Feb 19 '19 13:02 danjho

check this issue https://github.com/thisbejim/Pyrebase/issues/294 you will understand what happened the problem is with the library

abdelwahebmoalla avatar Feb 19 '19 13:02 abdelwahebmoalla

@DanJhonatan @abdelwahebmoalla Have you got the solution.I am also getting same error.Any suggestion .Thanks in advance

Narender-350 avatar Feb 25 '19 08:02 Narender-350

@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.

vishnu-chalil avatar Mar 01 '19 16:03 vishnu-chalil

It's working in my fork https://github.com/nhorvath/Pyrebase4 was a problem with double escaping quotes.

nhorvath avatar Mar 06 '19 13:03 nhorvath

@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!

danjho avatar Mar 08 '19 13:03 danjho

@thisbejim Is it possible to get @nhorvath's change pulled into master?

vijayp avatar Apr 09 '20 20:04 vijayp

Love this module and great work all! Just wondering when will 4.0 be available pypi?

xcelsiorbosi avatar Jul 20 '20 12:07 xcelsiorbosi

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)

CoutinhoElias avatar Mar 04 '22 23:03 CoutinhoElias

Workaround taken from here

# Temporarily replace quote function
def noquote(s):
    return s
pyrebase.pyrebase.quote = noquote

uwatm8 avatar Jan 04 '24 01:01 uwatm8