{ "message": "Invalid query: {method:equal,attribute:accountId,values:[660277c0b25c8e105e95]}", "code": 400, "type": "general_query_invalid", "version": "0.12.128" } this is my code export async function getCurrentUser() { try { const currentAccount = await getActiveSession();
if (!currentAccount) throw new Error("error getting currentAccount");
console.log(currentAccount, currentAccount.$id);
const currentUser = await database.listDocuments(Databaseid, userid, [
Query.equal("accountId", currentAccount.$id),
]);
console.log(currentUser);
if (!currentUser) throw new Error("error getting current user");
return currentUser.documents[0];
} catch (err) { console.log(err); } }
Recommended threads
- Export, Import or Migration giving this ...
As you can see in yhe screenshot i am not able to export any data or export the data from tables. Also it is affecting the migration from appwrite to appwrite h...
- Project auto-blocked after load testing ...
Hi team π My project has been automatically blocked with the message: "Project is currently blocked β Access to this project is restricted. Contact support if...
- App build crashing with "Internal error"
Hello Appwrite team! π We are trying to deploy a Next.js application on Appwrite Cloud, but our builds are consistently failing. The deployment log successful...