fava_client.add_account 500s on newer Fava: "Trying to read a non-source file" for accounts/users.beancount #43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Symptom
FavaClient.add_account(fava_client.py:~1624) fails against current pip-released Fava:Surfaced by
test_balances_api.py::test_credit_balance_subtracts_from_netwhen running the suite against a freshuv pip install fava(2026-06-12). Pre-existing — reproduces identically on pre-15d9910 code, so not related to the entry-identity fix.Likely cause
Newer Fava restricts
/api/sourceto files that are actual sources of the loaded ledger (reachable viainclude).add_accountwrites toaccounts/users.beancount, which the test ledger (and possibly some deployed ledgers) doesn'tinclude, so Fava refuses to serve/edit it.To investigate
includesaccounts/users.beancountbefore writing to it, or (b) route account creation throughPUT /api/add_entries(Open directive) instead of source-file editing.get_or_create_user_account) break on a Fava upgrade?🤖 Generated with Claude Code