
Currently running into this error when trying to update any documents:
AppwriteException: Invalid permissions
param: Every permission must be of type string.
Here is an example of some code that is triggering it:
export const updateDayStats = async (userId, foodCalories, foodTotalFat) => { try { const day = await databases.updateDocument( databaseId, dayCollectionId, userId, {calories: foodCalories}, {totalFat: foodTotalFat}, ); return day } catch (error) { throw new Error(error) } }
And I have create, read, update, and delete permissions checked for users in the collection. I have another project that I haven't worked on in about a month or so, and in it I have update codes the same exact way as I am trying here and it worked fine. Did something with permissions change or am I doing something wrong?
Recommended threads
- Appwrite Google OAuth token error
Hello, I am developing an application using React Native, Expo Router, and Appwrite. Since this afternoon, I have been encountering errors related to authentic...
- My Appwrite login is failing
Hello team, I’m facing a login issue with appwrite this morning. I started receiving customer support emails that they can’t login. I haven’t changed or pushed ...
- Invalid `success` param
Hi again, I've tried to set up the login process. However, I always get the message: `Invalid success param: URL host must be one of: localhost, xxx` I've alr...
