no FunctionClause matching when loading calculation
Hi, somewhere between this commit de943509f73ff0c6ef3749feb3cc6ab6e4d99d2d and now, I started getting an error in one of my graphql queries.
I tried to look at it, but I wasn't able to figure it out yet.
It happens when the
:unkown
branch is executed here: https://github.com/ash-project/ash/blob/5005d57b1db3522a09accc6f10418ac230fe2c40/lib/ash/actions/read.ex#L1526
The context inside the query is empty and no action is set, therefore no run_query function matches.
The calulation it's trying to load is a simple expr
calulcation with a fragment
inside on a resource using AshPostgres Datalayer, no args
are anything.GitHub
ash/read.ex at 5005d57b1db3522a09accc6f10418ac230fe2c40 · ash-proje...
A declarative and extensible framework for building Elixir applications. - ash/read.ex at 5005d57b1db3522a09accc6f10418ac230fe2c40 · ash-project/ash
6 Replies
Mind opening an issue in Ash?
Just pushed something up to main that might resolve this issue.
I'm getting a different error now, I'll move this to a github issue.
GitHub
no FunctionClause matching when loading calculation · Issue #568 · ...
Describe the bug Hi, somewhere between this commit de94350 and now, I started getting an error in one of my graphql queries. [error] Task #PID<0.6039.0> started from #PID<0.6032.0> term...
Hey @barnabasj so I have a test that gets to that branch of code, but it works for me, both loading it directly on the record, and loading the record from a relationship and then loading the calculation (which is what it looks like you're doing).
I'll probably need to see the graphql query thats causing the issue
Haven't reproduced the issue, but I did find a potential cause of the issue, so you can try out ash
main
Thanks, I'll try it shortly.
That fixed it, 🙇 thank you very much
🥳 I'm glad that worked 😅