I use firebase and my JSON(Firebase) is as below. I want to retrieve the key values(288xxx) by using busStopName values.
My code is as below. I'll make an example with '윤정사앞'
# Retriving id by using value
def getIdByName(db, name) :
bus = db.child("busStops").order_by_child("busStopName").equal_to(name).get()
print(bus.key())
...
...
getIdByName(db, "윤정사앞")
My ideal result of this code was 288000001. But there are errors, which are 'Bad Request' and 'orderBy must be a valid JSON encoded path'.
Please help me...