I need to export my Firabase database as JSON via the Firebase console, however when I do so I get the following message in the JSON file:
Data requested exceeds the maximum size that can be accessed with a single request
How can I fix this?
Additional details:
This is the function I use in the console:
EDIT:
I found this question that tried to access "too big" data from a Firebase client. I presume the two are related (Firebase limit). However I would have expected the Firebase console UI to provide that error message when exporting and ask the user whether or not to split the export in multiple files. I believe that this is a UX bug in the JSON Export functionality of the Firebase console (should be greyed out if not possible to export or should allow the user to tune the file size).
install Firebase CLI,then open a terminal and write down this command in order to download the whole data base
firebase database:get -o OUTPUT_FILE_NAME.json /
The Firebase Console has limits on the size of data it allows to export. The export link should indeed be disabled when you're displaying a location that is too big to export through the console.
If your database is under 256MB, you can export it with a CURL request:
curl "https://yours.firebaseio.com//.json?print=pretty&auth=CREDENTIAL"
See the documentation on the REST API.
If that also doesn't work, you'll have to download the data in chunks. A tool that might be helpful with that is: https://github.com/alexklibisz/firebak
See also:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With