mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-22 00:13:45 -05:00
* [AI] Fix SimpleFin batch sync crash when accounts are missing from response When SimpleFin doesn't return data for all requested accounts during batch sync, the code crashed with a TypeError accessing properties on undefined, resulting in a generic "internal error" message for users. This fix: - Adds a guard in simpleFinBatchSync for missing account data, returning an ACCOUNT_MISSING error instead of crashing - Propagates error entries from the SimpleFin response's errors map for accounts that have no data entry - Adds a user-friendly ACCOUNT_MISSING error message in the UI suggesting to unlink and relink the account - Adds test cases covering both scenarios https://claude.ai/code/session_01XbHgxxrXYR3UTyW6VmYj47 * Add release notes for PR #7152 * [AI] Fix SimpleFIN batch sync error_code TypeError Fix "Cannot read properties of undefined (reading 'error_code')" that occurs during SimpleFIN batch sync by: 1. Adding null check for downloadSimpleFinTransactions result in simpleFinBatchSync (sync.ts) - the function can return undefined when user token is missing 2. Adding .catch() handler on individual processBankSyncDownload promises so a single account failure doesn't crash the entire batch via Promise.all rejection 3. Using optional chaining on syncResponse.res?.error_code in app.ts and handling the case where res is undefined with proper error reporting https://claude.ai/code/session_01XbHgxxrXYR3UTyW6VmYj47 * [AI] Fix SimpleFin batch sync to emit ACCOUNT_MISSING for empty payloads In the batch sync path, if a per-account download payload is an empty object or is missing the transactions array, processBankSyncDownload would crash and the error would be caught as INTERNAL_ERROR. Now we check for these cases explicitly and emit ACCOUNT_MISSING instead, while still allowing entries with error_code to propagate their specific error. https://claude.ai/code/session_01XbHgxxrXYR3UTyW6VmYj47 --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
141 B
141 B
category, authors
| category | authors | |
|---|---|---|
| Bugfixes |
|
Handle missing accounts in SimpleFin batch sync with localized error messaging for users.