[GH-ISSUE #7457] [Bug]: RuleError log on downloadBudget api call #10025

Open
opened 2026-04-10 20:21:24 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @matheusvellone on GitHub (Apr 10, 2026).
Original GitHub issue: https://github.com/actualbudget/actual/issues/7457

What happened?

I'm the developer of actual-ical

When i updated the @actual-app/api from 26.3.0 to 26.4.0 on my app, I started receiving this error when the downloadBudget method is called 🤔

Invalid rule RuleError: RuleError: Invalid condition operator: oneOf (type: string, field: notes)
    at assert (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/rules/rule-utils.ts:14:11)
    at new Condition (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/rules/condition.ts:212:5)
    at /Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/rules/rule.ts:139:12
    at Array.map (<anonymous>)
    at new Rule (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/rules/rule.ts:138:34)
    at makeRule (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/transactions/transaction-rules.ts:166:12)
    at loadRules (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/transactions/transaction-rules.ts:198:18)
    at async _loadBudget (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/budgetfiles/app.ts:607:3)
    at async Object.loadBudget$1 [as load-budget] (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/budgetfiles/app.ts:235:15)
    at async handlers$1.api/download-budget (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/api.ts:224:5) {
  type: 'internal'
}

Despite the error, the downloadBudget does not throw this error and everything seems to work as expected.
I also tested with a fresh file, and no error happens, but on my live file it does.

I could not pin point exactly what kind if existing data makes this errors start appearing

How can we reproduce the issue?

Run downloadBudget on a file with some specific data that triggers this error

Where are you hosting Actual?

Docker

What browsers are you seeing the problem on?

Other

Operating System

Mac OSX

Originally created by @matheusvellone on GitHub (Apr 10, 2026). Original GitHub issue: https://github.com/actualbudget/actual/issues/7457 ### What happened? _I'm the developer of [actual-ical](https://github.com/matheusvellone/actual-ical)_ When i updated the `@actual-app/api` from 26.3.0 to 26.4.0 on my app, I started receiving this error when the `downloadBudget` method is called 🤔 ``` Invalid rule RuleError: RuleError: Invalid condition operator: oneOf (type: string, field: notes) at assert (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/rules/rule-utils.ts:14:11) at new Condition (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/rules/condition.ts:212:5) at /Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/rules/rule.ts:139:12 at Array.map (<anonymous>) at new Rule (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/rules/rule.ts:138:34) at makeRule (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/transactions/transaction-rules.ts:166:12) at loadRules (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/transactions/transaction-rules.ts:198:18) at async _loadBudget (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/budgetfiles/app.ts:607:3) at async Object.loadBudget$1 [as load-budget] (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/budgetfiles/app.ts:235:15) at async handlers$1.api/download-budget (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/api.ts:224:5) { type: 'internal' } ``` Despite the error, the `downloadBudget` does not throw this error and everything seems to work as expected. I also tested with a fresh file, and no error happens, but on my live file it does. I could not pin point exactly what kind if existing data makes this errors start appearing ### How can we reproduce the issue? Run `downloadBudget` on a file with some specific data that triggers this error ### Where are you hosting Actual? Docker ### What browsers are you seeing the problem on? Other ### Operating System Mac OSX
GiteaMirror added the needs triagebug labels 2026-04-10 20:21:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#10025