T
Twenty4mo ago
fendle

Browser throws useFindManyRecords

When I press on opportunities, I get the following error: useFindManyRecords for "opportunities" error : ApolloError: Float cannot represent non numeric value: NaN Float cannot represent non numeric value: NaN The opportunity table stays empty, how to identify the broken record? Thanks
9 Replies
fendle
fendleOP4mo ago
In the logs I can see: Error: Float cannot represent non numeric value: NaN at completeLeafValue (/app/node_modules/@graphql-tools/executor/cjs/execution/execute.js:620:19) at completeValue (/app/node_modules/@graphql-tools/executor/cjs/execution/execute.js:451:16) at /app/node_modules/@graphql-tools/executor/cjs/execution/execute.js:327:49 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async /app/node_modules/@graphql-tools/executor/cjs/execution/promiseForObject.js:18:35 at async Promise.all (index 5) { extensions: {}
fendle
fendleOP4mo ago
No description
fendle
fendleOP4mo ago
is it than normal, that the whole table is not rendered?
Prastoin
Prastoin4mo ago
Hey @fendle Are you self hosting and if yes what version ? Looks like an invalid opportunity number field value passed the api validation and corrupted your opportunities We should determine what opportunity is guilty delete it manually and fix the api validation
fendle
fendleOP4mo ago
Hi @prastoin , yes I am doing it. I am creating Opportunities manually and via API. I have the same issue as well in another object, but I try to somehow figure out which object could be affected it would be great if the error would return as well the affected object if possible. I found the entries which were wrong, it looks like you api allows non specified values to be stored. thanks for reaching out to me
Prastoin
Prastoin4mo ago
Hey please shared the problematic entry so we can fix the api Glad to hear you find your way out ! congrats
fendle
fendleOP4mo ago
it as a number field and in the database was NaN stored
fendle
fendleOP4mo ago
No description
fendle
fendleOP4mo ago
in a related object

Did you find this page helpful?