Skip to content

fix get memories crash#3669

Merged
aaravgarg merged 1 commit into
mainfrom
fix/get-memories
Dec 10, 2025
Merged

fix get memories crash#3669
aaravgarg merged 1 commit into
mainfrom
fix/get-memories

Conversation

@krushnarout
Copy link
Copy Markdown
Member

closes #3668

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request aims to fix a crash when fetching memories by adding checks for the response status code and ensuring the decoded JSON is a list. This is a good improvement. The suggestion to wrap the JSON decoding logic in a try-catch block to make it more robust against invalid JSON responses is valid and important for preventing app crashes, as API responses can sometimes be malformed.

Comment thread app/lib/backend/http/api/memories.dart
@aaravgarg aaravgarg merged commit e203964 into main Dec 10, 2025
1 check passed
@aaravgarg aaravgarg deleted the fix/get-memories branch December 10, 2025 10:28
Glucksberg pushed a commit to Glucksberg/omi-local that referenced this pull request Apr 28, 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.

FlutterError - type '_Map<String, dynamic>' is not a subtype of type 'List<dynamic>'

2 participants