Skip to content

fix(core): add fallback for JSON parse errors in models-dev#29385

Closed
SpencerJung wants to merge 2 commits into
anomalyco:devfrom
SpencerJung:fix/29366-models-dev-parse
Closed

fix(core): add fallback for JSON parse errors in models-dev#29385
SpencerJung wants to merge 2 commits into
anomalyco:devfrom
SpencerJung:fix/29366-models-dev-parse

Conversation

@SpencerJung
Copy link
Copy Markdown

Fixes #29366

Wrap JSON.parse in Effect.try with fallback to empty object to prevent crashes when models JSON is malformed.

Wrap JSON.parse in Effect.try with fallback to empty object to prevent
crashes when models JSON is malformed or fetch returns non-JSON.

Fixes anomalyco#29366
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label May 26, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label May 26, 2026
@github-actions github-actions Bot closed this May 26, 2026
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.

return {} on json parse error

1 participant