ajax Internet Explorer 11“存储空间不足”错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27405826/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-06 10:27:24  来源:igfitidea点击:

Internet explorer 11 "Not enough storage" error

ajaxinternet-explorer

提问by uygar donduran

When I try to get an ajax response around 100 mb I get this error:

当我尝试获得大约 100 mb 的 ajax 响应时,我收到此错误:

Error: Could not complete the operation due to error 8007000e. “Not enough storage is available to complete this operation”

错误:由于错误 8007000e,无法完成操作。“没有足够的存储空间来完成此操作”

I don't get such errors with other browsers.

我在其他浏览器上没有遇到这样的错误。

Why does it happen ?

为什么会发生?

I use IE 11. Windows 8.1 64bit 16GB RAM

我使用 IE 11。Windows 8.1 64 位 16GB 内存

enter image description here

在此处输入图片说明

回答by Sreejith Warrier

I had a similar problem with one of applications. The same stuff worked well in Firefox and Chrome. In my case IE failed when it consumed more than 1.2 GB memory. I also noticed memory management was better in Firefox and Chrome and it stayed less than 800M all the time.

我在其中一个应用程序中遇到了类似的问题。同样的东西在 Firefox 和 Chrome 中运行良好。在我的情况下,IE 在消耗超过 1.2 GB 内存时失败。我还注意到 Firefox 和 Chrome 中的内存管理更好,并且一直保持在 800M 以下。

If you have a similar situation you can capture memory footprints from IE and other Browser using developer tools to get further clue. In my case problem was due to a third party component application used.

如果您有类似的情况,您可以使用开发人员工具从 IE 和其他浏览器中捕获内存占用以获取更多线索。在我的情况下,问题是由于使用了第三方组件应用程序。

回答by Roman Canlas

It looks like you've reached the quota for your local browser storage. Here's a link you can refer to see the various storage limitations of each browser.

您似乎已达到本地浏览器存储空间的配额。这是一个链接,您可以参考查看每个浏览器的各种存储限制。

http://www.html5rocks.com/en/tutorials/offline/quota-research/

http://www.html5rocks.com/en/tutorials/offline/quota-research/

If pulling the request.reponseText doesn't throw the error itself (without the JSON.parse-ing), try to consider storing it in an IndexedDB. As per the link above, IE11 can hold from 100MB of data

如果拉取 request.reponseText 本身不会引发错误(没有 JSON.parse-ing),请尝试考虑将其存储在 IndexedDB 中。根据上面的链接,IE11 可以容纳 100MB 的数据

Steps on how to create one can be found here:

可以在此处找到有关如何创建一个的步骤:

http://msdn.microsoft.com/en-us/library/ie/jj154905(v=vs.85).aspx

http://msdn.microsoft.com/en-us/library/ie/jj154905(v=vs.85).aspx

http://hacks.mozilla.org/2012/02/storing-images-and-files-in-indexeddb/

http://hacks.mozilla.org/2012/02/storing-images-and-files-in-indexeddb/