Firebase错误:请求的数据超过了可以通过单个请求访问的最大大小 [英] Firebase error: Data requested exceeds the maximum size that can be accessed with a single request

查看:566
本文介绍了Firebase错误:请求的数据超过了可以通过单个请求访问的最大大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过Firebase控制台 Firabase 数据库导出为 JSON ,但是当我这样做时,我会收到以下消息JSON文件:

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?

其他详细信息

这是我在控制台中使用的功能:

This is the function I use in the console:

编辑

我发现这个试图访问太大的问题Firebase客户端的数据。我认为这两个是相关的(Firebase limit)。但是,我希望Firebase控制台UI在导出时提供该错误消息,并询问用户是否将导出分割为多个文件。我相信这是Firebase控制台的JSON导出功能中的 UX错误(如果不可能导出,应该是灰色的,或者应该允许用户调整文件大小)。

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).

推荐答案

Firebase控制台对允许导出的数据大小有限制。当您显示的位置太大而无法通过控制台导出时,导出链接确实被禁用。

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.

如果您的数据库不足256MB,您可以导出使用CURL请求:

If your database is under 256MB, you can export it with a CURL request:

curl "https://yours.firebaseio.com//.json?print=pretty&auth=CREDENTIAL"

请参阅 REST API上的文档

如果这样也不行,你我们必须以块的形式下载数据。可能有用的工具是: https://github.com/alexklibisz/firebak

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

另请参见:

  • Is it possible to backup Firebase DB?
  • Loading Bulk data in Firebase
  • How to migrate data & settings from one firebase to another?

这篇关于Firebase错误:请求的数据超过了可以通过单个请求访问的最大大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆