Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON format error causes card freeze #600

Open
oneQiu opened this issue Dec 2, 2024 · 1 comment
Open

JSON format error causes card freeze #600

oneQiu opened this issue Dec 2, 2024 · 1 comment

Comments

@oneQiu
Copy link

oneQiu commented Dec 2, 2024

我在使用lowdb的时候,在高频写入操作的时候,小概率出现json格式错误的情况,导致我整个应用卡死,我应该怎么处理兜底逻辑。

When I use lowdb, there is a small probability that JSON format errors will occur during high-frequency write operations, causing my entire application to freeze. How should I handle the fallback logic?

这是错误
this is error

image

image

这是代码
this is code
image

@oneQiu
Copy link
Author

oneQiu commented Dec 2, 2024

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant