gpt4 book ai didi

ios - Sentry 错误 - IndexSizeError : The index is not in the allowed range

转载 作者:行者123 更新时间:2023-12-04 12:00:15 25 4
gpt4 key购买 nike

我从 收到此错误哨兵在 ios 中重复 - safari 14.0 在 react 项目中。
没有代码跟踪,也没有其他信息,但它几乎在每个 URL 中重复。
我已经到处寻找选项。我试过调试但我无法复制它,所以我无法解决它。
有谁知道这个错误是什么意思?或者如何在 Sentry 中添加调试信息?
我一直在寻找解决方案,但无法得到它。我知道提供的信息有点缺乏,但这就是我问这个的原因。如果有人能告诉我如何处理哨兵错误,如果您不知道为什么它会如此频繁地重复,那将非常有帮助。

最佳答案

类似的问题仍然存在。
当 Draft.js 更新编辑器状态时,在 Safari 中遇到了这个问题。
我看到的错误:IndexSizeError:索引不在允许的范围内。
对我来说,玩弄Paragraph Direction右键单击编辑器选择后的上下文菜单项重现了错误。
我的解决方案/黑客:
将它添加到在 Editor 文件之前执行的任何 JS 文件中。

const nativeSelectionExtend = Selection.prototype.extend;

Selection.prototype.extend = function (...args) {
try {
return nativeSelectionExtend.apply(this, args);
} catch (error) {
console.log('Selection error.', error);
}
};
它适合我。也许对某人也有用。
感谢 https://github.com/shpakkdv

关于ios - Sentry 错误 - IndexSizeError : The index is not in the allowed range,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65839034/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com