bugthesystem / FireSharp

An asynchronous cross-platform .Net library for Firebase
The Unlicense
693 stars 147 forks source link

Querybuilder NotFound response #82

Closed Sagariouz closed 7 years ago

Sagariouz commented 7 years ago

Hi guys.

I'm trying the new QueryBuilder to limit the amount of data that is fetched, but I'm getting an exception on the request: "Request responded with status code=NotFound, response=not found"

FirebaseResponse response = await client.GetAsync("Routes", QueryBuilder.New().LimitToFirst(8)); It works without the QueryBuilder param.

I'm not using Auth and I havent upgraded to the new dashboard yet, may that be the issue?

Sagariouz commented 7 years ago

If anyone else gets this exception. I needed to add some form of authentication on the client call.

Thx for this added feature, saved me..

TiagoGouvea commented 7 years ago

When I call QueryBuilder.New().LimitToLast(10) It give me "orderBy must be defined when other query parameters are defined"

arcosmin commented 7 years ago

@TiagoGouvea you need to order your objects by something to use limit to last since there is know default ordering on the firebase db