mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-10 04:02:38 -05:00
[Bug]: Account Does Not Sync to SimpleFIN #1499
Closed
opened 2026-02-28 19:45:22 -06:00 by GiteaMirror
·
21 comments
No Branch/Tag Specified
master
claude/fix-simplefin-batch-sync-O8LcD
matiss/modal-and-server-refactor
claude/fix-simplefin-ssrf-T31gX
claude/release-notes-validation-X7rvR
ai/custom-theme-dual-prefs
matiss/fix-6804
add-claude-github-actions-1772738270730
react-query-rules
react-query-useSchedules
matiss/separate-lint-format
dependabot/npm_and_yarn/ajv-6.14.0
cursor/sync-performance-notification-9899
react-query-prefs
matiss/chunked-sync-and-progress-ux
v26.2.1
copilot/sub-pr-6880
fix-react-query-clear-on-close-budget
copilot/sub-pr-6140
feat/auto-note
feat/scoped-bank-sync
cursor/desktop-transactions-react-table-1d0c
fix-exhaustive-deps-App
copilot/fix-find-replace-bug
release/v26.2.0-pre
matiss/browser-tests
mobile-fix-drag-and-drop-across-groups
budget-table-v2
PayeeAutocomplete2
pglite
bugfix/plugins/fix-plugins-sw
feat/plugins/plugins-core-package
prerelease
matiss/unicode-minus-fix
cursor/fix-actual-github-issue-6206-gemini-3-pro-preview-9c37
TransactionFormPage
cursor/implement-mortgage-and-loan-account-type-78ca
tests-update-fill-with-pressSequentially
mobile/link-modal
deps/25.11
cursor/fix-update-vrt-apply-ci-job-dispatch-b324
sync-server-plugins
cursor/propose-patch-for-github-issue-5680-2a18
fix/compiler-preserve-inner-dollar-escapes
cursor/analyze-actual-budget-issue-and-propose-fix-5b70
coderabbitai/docstrings/0c070e5
cursor/add-wip-prefix-and-comment-to-prs-d78d
jfdoming/08-21-auto-focus-on-navigate-in-all-browsers
show-totals-on-mobile-budget-banners
allow-child-transactions-make-transfer
mobile-calculator-keyboard
payee-geolocation
enhance/restore_scroll_position
dm-fix-second-click-on-mobile-new-transaction-2
scrollToLocationBudget
alert-autofix-38
tsconfig-composite
mobile-fix-uncategorized-transactions-on-tracking-budgets
server-budget-handlers
fix-sql-injection-in-cleanup-template
non-chrome-draggable-workaround
mobile-budget-page-swipe-navigation
ts-db-all
stable
dark-theme-with-brand-colors
fix-mobile-delete-group
ts-db-select
UnderKoen/reconcile-context-menu
master-before-server-merge
v25.2.1
ts-runQuery
rename-redux-hooks
UnderKoen/3557-persist-state-in-history
remove-redux-CLOSE_BUDGET
fix-exhaustive-deps-errors-FinancesApp
redux-toolkit-createSlice-backup
accounts-function-component
ts-useSplitsExpanded
loot-core-server-package
useTransactios-in-TransactionEdit
react-aria-input
move-redux-to-desktop-client
QueryState-type
fix-themes-applied-late
mobile-vrts
revert-3295-spendingCardFix
react-aria-button-4
split-payee-on-mobile
twk3/pin-apis-crdt
notes-tag-autocomplete
ts-LoadBackup
dnd-kit
package-upgrades
v26.3.0
v26.2.1
v26.2.0
v26.1.0
v25.12.0
v25.11.0
v25.10.0
v25.9.0
v25.8.0
v25.7.1
v25.7.0
v25.6.1
v25.6.0
v25.5.0
v25.4.0
v25.3.1
v25.3.0
v25.2.1
v25.2.0
v25.1.0
v24.12.0
v24.11.0
v24.10.1
v24.10.0
v24.9.0
v24.8.0
v24.7.0
v24.6.0
v24.5.0
v24.4.0
v24.3.0
v24.2.0
v24.1.0
v23.12.0
v23.11.0
v23.10.0
v23.9.0
v23.8.1
v23.8.0
v23.7.2
v23.7.1
v23.7.0
v23.6.0
v23.5.0
v23.4.2
v23.4.1
v23.4.0
v23.3.2
v23.3.0
v23.2.9
v23.2.5
v23.1.12
v22.12.9
Labels
Clear labels
AI generated
API
bank sync
budgeting
bug
can’t replicate
dependencies
docker
documentation
electron
experimental feature
feature
feedback
goal templates
good first issue
help wanted
importers
maintenance
needs info
needs testing
needs triage
needs votes
openid
payees
pull-request
regression
reports
responsive
rules
schedules
server
✨ merged
split transactions
tech debt
theme
transaction import
transaction reconciliation
transactions
translations
upstream
user interface
✅ approved
wontfix
Mirrored from GitHub Pull Request
No Label
bug
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/actual#1499
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @weswitt on GitHub (Oct 10, 2024).
Verified issue does not already exist?
What happened?
After adding a new account that connects to SimpleFIN I do not see any transactions or a correct balance. I can see that SimpleFIN is returning the correct data as I can run CURL to download the accounts from SimpleFIN and all the data are returned. When doing the "Bank Sync" I see the error "504 Gateway Time-out". I'm syncing to 7 different banks with many accounts so maybe AB is not waiting long enough since SimpleFIN returns all transactions for all accounts in one response.
Where are you hosting Actual?
Docker
What browsers are you seeing the problem on?
Chrome
Operating System
Windows 10
@weswitt commented on GitHub (Oct 10, 2024):
OK, I enabled debug logging and I'm seeing this:
Error parsing JSON response: error code: 524
SyntaxError: Unexpected token e in JSON at position 0
at JSON.parse ()
at IncomingMessage. (file:///app/src/app-simplefin/app-simplefin.js:332:26)
at IncomingMessage.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1400:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
2024-10-10T20:54:38.138Z info: POST 200 /simplefin/transactions
@youngcw commented on GitHub (Oct 11, 2024):
Can you ping simplefin from your server running Actual?
@weswitt commented on GitHub (Oct 11, 2024):
Yes. And as I said in the bug report I can download from SimpleFIN using a python script
@weswitt commented on GitHub (Oct 11, 2024):
OK I debugged this further. I found that AB is issuing a request to SimpleFIN with the arguments "/accounts?start-date=1720828800&end-date=1730419200&pending=1", which a 4 month date range. This is likely a lot of data. So I used these same parameters in a python script and I found that what comes back is a response code of 524, timeout. The payload returned is HTML rendered by Cloudflare. This seems to be a problem with either Cloudflare or SimpleFN. I also observed that the timeout happened after 1m40.458s, so even if proper JSON data was eventually returned AB's 60 second timeout would have terminated the call.
@youngcw what do you think about this??
@youngcw commented on GitHub (Oct 11, 2024):
The sync will always request 90 days of data unless you have less than that time in your account history. That 1m40s sounds like a long time to get data back. It should process on a few seconds.
@weswitt commented on GitHub (Oct 11, 2024):
This is definitely a Cloudflare timeout, see https://developers.cloudflare.com/support/troubleshooting/cloudflare-errors/troubleshooting-cloudflare-5xx-errors/. Cloudflare will return a 524 after 100 seconds if the server does not respond. I am seeing the failure after exactly 100 seconds. This is absolutely caused by the fact that SimpleFIN is collecting a lot data by AB's request.
Actual Budget could fix this by making multiple calls for shorter date ranges and then combine the data.
@weswitt commented on GitHub (Oct 11, 2024):
If I reduce the date range to one month it works fine.
@weswitt commented on GitHub (Oct 11, 2024):
I modified getAccounts() in app-simplefin.js to never request more than 1 month and I now have things syncing again. This is not ideal because for new accounts it missed historical transactions.
I sent a support email to SimpleFIN to see if they can resolve this on their end.
@youngcw commented on GitHub (Oct 18, 2024):
Did you ever hear back about this?
@d4vastu commented on GitHub (Oct 23, 2024):
My issue is pretty odd. If I click bank sync some transactions do come in. However, if I want receive all new so actual matches my bank, I have to log in to simple fin, click adjust, wait for it to say my bank is already connected, then select bank sync again. Then everything works until the next day.
@youngcw commented on GitHub (Oct 23, 2024):
@d4vastu Are you waiting until after simplefin has synced with your banks? Simplefin only syncs once a day so it can be up to 2 days before your transactions will show in Actual depending on the timing of things
@weswitt commented on GitHub (Oct 23, 2024):
I did hear back from SimpleFIN. Their initial suggestion was the same as mine -- break up the sync calls into one month chunks. They sent another email back saying: "I've made a note to look into this, and I'll reach out to the Actual Budget folks, too. It looks like the timeout is happening on Cloudflare's side (and is by default set to 100 seconds). I'll see if we can extend that.
Thanks again for bringing this up!".
Ultimately you could say this is a SimpleFIN bug, but I really think that AB needs to change their logic to make smaller requests so their code is defensive against these issues.
@youngcw commented on GitHub (Oct 23, 2024):
Somewhat soon we will update the simplefin calls to only request a single account if you only request one. That probably will help your issue.
@weswitt commented on GitHub (Oct 23, 2024):
That is a great solution and will definitely fix the problem. Thanks a lot!!
@youngcw commented on GitHub (Oct 23, 2024):
That option wasn't available until a few days ago unfortunately, but its been added on simplefin's side so we can start using it now.
@weswitt commented on GitHub (Oct 23, 2024):
Yea, I was going to ask about that as their documented API only returned data for all accounts. Great timing for this.
@weswitt commented on GitHub (Oct 25, 2024):
I picked up your changes to app-simplefin.js. Seems to fix the problem, thanks.
Where did you find docs for the new SimpleFIN API to query for a single account?? I looked on the site and cannot find the docs.
@youngcw commented on GitHub (Oct 25, 2024):
You may have to look at their github to see them as they are so new
@youngcw commented on GitHub (Nov 12, 2024):
Im going to close this since things seem to be working for you. Feel free to reopen or make a new issue if you are still having trouble.
@HStep20 commented on GitHub (Aug 20, 2025):
This has begun happening again for a few users in the discord. It appears that cloudflare is causing the issue on occasion (sync worked yesterday, but not today), so perhaps time for a revisit?
Based on the cloudflare docs (https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-524/), I went ahead and un-proxied my budget domain for testing.
Still getting 524 errors when I try to sync all accounts
I decided to test one single account that handles most of my transactions, and it failed with a 524.
Tested a separate account, and it worked. Tested more individual accounts, and they all worked. Only the one account with many transactions is failing - but because the 'account group sync' seems to make one call with all accounts requested (Im guessing), trying to sync the 'On Budget' group of accounts is failing since the one fails.
There are ~180 transactions in the big account between 2025-05-01 and today, and 460 transactions total between the 9 on budget accounts I have, meaning 40% of my transactions come from the one account.
Im assuming that the larger payload is causing the slowdown with bank sync as the github issue I linked mentions, but Id love to get some other ideas
@HStep20 commented on GitHub (Aug 21, 2025):
It seems to be working again as of this morning, so perhaps it was a bad data point in SimpleFins cache that was cleared out and fixed today for that one account? Im not quite sure how they handle data, and if its 'fresh' each day, or only the latest day is appended to the prior days payload