#Empty field names are disallowed

12 messages · Page 1 of 1 (latest)

real saddle
#

I'm still on 0.14.1 and I'm getting an Empty Field Names are disallowed. error. Since it's coming from a mutation within an action, I can't log the fields before I attempt storage/update. Could this error be made to be more informative?

latent zealot
#

Is it possible that you're storing an object where there's a key that has a .toString() that returns ""?

#

but agreed that it'd be helpful to have more debugging info. Have you tried calling console.log() and viewing the log output on the dashboard?

real saddle
#

I'm storing
const res = { userId, messageId: messages[i].id, conversationId: messages[i].conversationId, listingMapId: messages[i].listingMapId, communicationType: messages[i].communicationType, body: messages[i].body, responseData: messages[i], };
and userId is of type Id<"users">

#

doesn't seem like any of the keys are "" after looking at console.log

latent zealot
#

could body or responseData by themselves objects which have an empty field name? if you're able to log the full expansion of res that may point to a smoking gun. the restriction on non-empty field names applies to nested fields not just top-level ones

steep topaz
#

Unrelated to the actual fix:

it's coming from a mutation within an action, I can't log the fields before I attempt storage/update"
You should be able to log the fields and see it in the action logs?

real saddle
real saddle
real saddle
#

@steep topaz Also FYI I'm not able to scroll horizontally in the dashboard and the action logs aren't scrollable. On chrome.

midnight lotus
#

Thanks for the heads up on the scrolling issues! We're working on getting a fix out now