Skip to content

JSON format error causes card freeze #600

Description

@oneQiu

我在使用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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions