Skip to content
Back

AppwriteException: Invalid query: Query value is invalid for attribute "discord_id"

  • 0
  • Self Hosted
  • Databases
Sober
18 Jan, 2026, 20:34
TypeScript
console.log(typeof interaction.user.id)
console.log(interaction.user.id)

const user_check = await TablesDB.listRows({
            databaseId: "db",
            tableId: "users",
            queries: [Query.equal('minecraft_uuid', [mc_uuid]), Query.equal('discord_id', interaction.user.id), Query.limit(1)]
        })
TypeScript
string
1106290613432889497
Command error: AppwriteException: Invalid query: Query value is invalid for attribute "discord_id"```

I have tried using \`_${interaction.user.id}` (to FORCE it as a string just incase the SDK converts it to a string in the function, as well as using an array as the documentation provides but no luck)
TL;DR
Error message: AppwriteException stating that the query value for the "discord_id" attribute is invalid. Developer tried converting the value to a string and using an array but did not work.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more