Skip to content

fix: handle corrupted JSON in requestDetailsDb gracefully (closes #506)#516

Open
anuragg-saxenaa wants to merge 1 commit intodecolua:masterfrom
anuragg-saxenaa:fix/issue-506-requestdetails-corrupted-json
Open

fix: handle corrupted JSON in requestDetailsDb gracefully (closes #506)#516
anuragg-saxenaa wants to merge 1 commit intodecolua:masterfrom
anuragg-saxenaa:fix/issue-506-requestdetails-corrupted-json

Conversation

@anuragg-saxenaa
Copy link
Copy Markdown
Contributor

Fixes #506 - 9router crashes with SyntaxError when the request-details.json database file is corrupted. Fix: catch SyntaxError on db.read(), backup corrupt file to ~/.9router/corrupted-dumps/, and reinitialize DB with empty records.

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

Successfully merging this pull request may close these issues.

This issue occurs when i use codex accounts

1 participant