Skip to content Skip to sidebar Skip to footer

Node.js Firestore Error - Cannot Encode Value

I'm using Discord.js to make a Discord bot, and I'm trying to use Cloud Firestore to keep a database of my values. I have the collection users in the firestore database. Here is wh

Solution 1:

The error you shared mentions "at Array.map", on firestore it's no possible to declare empty arrays. Update the set without the empty arrays and it should be able to encode the values.

This is similar to what is mentioned on this other question and I would recommend you take a look at Firestore Best practices

Post a Comment for "Node.js Firestore Error - Cannot Encode Value"