Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Error when choosing "imported payee contains" at rule creation #4004

Open
1 task done
purrrfecto opened this issue Dec 18, 2024 · 3 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@purrrfecto
Copy link

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

My environment:

  1. SimpleFIN for bank sync
  2. nothing manually imported
  3. server self hosted on Home Assistant OS on my Raspbery pi, using Home Assistant Add-on Current version: 24.12.0-alpine
  4. client access from Windows Application from my Windows 10 machine in same local network
  5. stable version

How can we reproduce the issue?

Side panel > More > Payees > click "Create rule" of any one of the payee
change condition match from "payee" to "imported payee"
change condition to "contains"

Error would pop up here. seems to mess up the whole system so I need to restart the server

the same error seems not pop up if I go to More > Rules and do the same thing. so it only happens from payee?

Where are you hosting Actual?

Other

What browsers are you seeing the problem on?

Desktop App (Electron)

Operating System

Windows 10

@purrrfecto purrrfecto added the bug Something isn't working label Dec 18, 2024
@quarklark
Copy link

Confirming that I'm seeing the same issue on Electron on Mac

@tekumara
Copy link

tekumara commented Dec 22, 2024

Console log shows:

Server Log: conditionsToAQL: invalid condition: RuleError: contains must have non-empty string (field: imported_payee)

VM354:2 Server Log: [Exception] TypeError: Cannot read properties of null (reading 'op')
    at gT (/Applications/Actual.app/Contents/Resources/app.asar/build/loot-core/lib-dist/electron/bundle.desktop.js:193:1004)
    at Array.map (<anonymous>)
    at gO (/Applications/Actual.app/Contents/Resources/app.asar/build/loot-core/lib-dist/electron/bundle.desktop.js:193:1504)
    at b5.make-filters-from-conditions (/Applications/Actual.app/Contents/Resources/app.asar/build/loot-core/lib-dist/electron/bundle.desktop.js:294:1147)
    at oY (/Applications/Actual.app/Contents/Resources/app.asar/build/loot-core/lib-dist/electron/bundle.desktop.js:62:2551)
    at ParentPort.<anonymous> (/Applications/Actual.app/Contents/Resources/app.asar/build/loot-core/lib-dist/electron/bundle.desktop.js:62:3194)
    at ParentPort.emit (node:events:518:28)
    at ParentPort.i.emit (node:electron/js2c/utility_init:2:15723)

And then a restart is required to get things back to normal. Just refreshing the page is insufficient - it gets stuck on "Loading global preferences".

@tekumara
Copy link

A workaround is to first select "imported payee one of", provide a value, and then select "contains". This will ensure the contains value isn't empty, which is what triggers the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants