Pyrebase icon indicating copy to clipboard operation
Pyrebase copied to clipboard

Error with request

Open AlfonsoAgAr opened this issue 4 years ago • 1 comments

  • [x] Check that your version of Python is 3.4+
  • [x] Check that you are on the newest version of Pyrebase
  • [x] Check that Email/password provider is enabled in your Firebase dashboard under Auth -> Sign In Method.

Hi, I've seen that is a common issue. "error": "orderBy must be a valid JSON encode path."

image

According to the documentation the query must be users_by_name = db.child("users").order_by_child("name").limit_to_first(3).get()

When I try the query users = db.child("example01").order_by_child('uid').get()

throw me this execption "error": "orderBy must be a valid JSON encode path."

So, the request is the problem

The request must be json?orderBy="uid"

but is json?orderBy=%2522uid%2522

Pyrebase is double encoding the commas, as a result, instead of put in the query "uid", it puts %2522uid%2522

AlfonsoAgAr avatar Sep 15 '21 07:09 AlfonsoAgAr

This repo is dead. Check out this fork instead: https://github.com/nhorvath/Pyrebase4

shkarlsson avatar Sep 23 '21 18:09 shkarlsson