Firebase Realtime database not working/reading data

2,337 views
Skip to first unread message

Talha Bin Tariq

unread,
Jul 22, 2022, 10:20:01 AM7/22/22
to Firebase Google Group
Suddenly my firebase realtime database has stopped working..

rules are {
  "rules": {
    ".read": "true",  // 2020-11-24
    ".write": "true",  // 2020-11-24
  }
}

Billing is all ok.. please guide what could be the reason??

Kato Richardson

unread,
Jul 25, 2022, 1:58:22 PM7/25/22
to Firebase Google Group
Hi Talha, 

I believe if you leave your DB rules open like that for too long, which is a security issue, you'll get a couple of warning emails and then it will be disabled. 

But it will be hard to tell if that's what's happening without knowing what errors you are running into.

☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/f36acc44-8910-494a-87f6-247ad7cc5a2dn%40googlegroups.com.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Talha Bin Tariq

unread,
Jul 26, 2022, 10:53:43 AM7/26/22
to fireba...@googlegroups.com
java.lang.RuntimeException: Firebase Database encountered an OutOfMemoryError. You may need to reduce the amount of data you are syncing to the client (e.g. by using queries or syncing a deeper path). See https://firebase.google.com/docs/database/ios/structure-data#best_practices_for_data_structure and https://firebase.google.com/docs/database/android/retrieve-data#filtering_data
I ran into this error.. I have been using firebase for quite a while now but never experienced this.. I have fetched a large amount of data in the past but never got this error..
Kindly guide me what to do??

Kato Richardson

unread,
Jul 26, 2022, 11:12:06 AM7/26/22
to Firebase Google Group
That's exactly what it sounds like. The device has run out of memory. So you'll need to break up the download into smaller chunks and download the most relevant (i.e. what the user is looking at right now) and find some scrolling/pagination strategy for the rest.

Reply all
Reply to author
Forward
0 new messages