AutoTable Error: [GraphQL] Cannot return null for non-nullable field
I am experiencing this error in Prod sometimes, but when I refresh the page, it disappears. It is weird that it happens in Prod only, and after I tried to query items in the playground with the same select, no errors are showing.

10 Replies
Hello,
Could you please share the name of the applicaiton and the table you're querying on? If you also have a traceId (from the network tab) that would be handy!
Hi Antoine! The name of the app is psu-ibs-asingan, and unfortunately, there is no traceId on the network tab and also in the gadget logs
Thank you
I'd need a trace or something to go off in order to investigate this. Otherwise I'll just be taking shots in the dark
Has this issue been resolved?
Hi Antoine! Sometimes, and after refreshing, it disappears. Unfortunately, it really does not have a trace ID. If it's okay, can we keep this thread open so that if I see a trace ID, then I can ping you immediately?
Mind sharing a link to the file in the Gadget editor so that I can take a look and give you a recommendation?
I will PM you the file link. Thank you!
FE File Link:
https://psu-ibs-asingan.gadget.app/edit/production/files/web/routes/admin/borrowedItems/index.tsx
Model Link:
https://psu-ibs-asingan.gadget.app/edit/production/model/hLzbVemlbUQ9/data
I was wondering if adding the select reduced the occurence of this error
I'm trying to narrow down some reproduction steps
Actually, the select is producing that error. It only shows up when I include the relationship in the select
We haven't been able to reproduce this on our end but we will keep digging. Thanks for reporting
I'm going to close this ticket for now. Feel free to reopen it by writing a message if it becomes a blocker/problem
Do you like this answer?