Cryptic (invalid read syntax: #, 12, 719) when org-roam-node-find


I am using the latest org-roam, org-roam-ui and doom emacs and I’d be grateful for hints on how to debug one error I am facing.

When I run org-roam-node-find, all I get is the message (invalid read syntax: #, 12, 719). Nothing else at all. org-roam-ref-find, instead, offers me a list of REFS to jump to.

I thought I managed to solve it yesterday by removing some custom configurations around org-roam-node-display-template, but the problem has re-appeared today. This morning, having fiddled a bit more, it seems to work again. However, I don’t know why it broke and why it now works.

My question is: is there a way to get a slightly more verbose error message if the problem reappears? toggle-debug-on-error is of no help here.

Thank you very much!