User with session cannot execute function with "Users" execute permissions right after signing in
- 2
- Functions

At least 500ms

Lol that's not even bad 馃槄

The only way might be to prevent it from being stopped due to inactivity

I feel like this problem is even more frequent in 1.4.3

redacted version of client logs:


document not found because of permissions

tl;dr;

there is a 4 requests

first that creates email session

second for retrieving account data

third that gets data from database

and the last that get sessions

cookie saved after first request is only used in second request, but not in third

sorry i think i misunderstand your problem originally

i don't understand this 馃槄
can you share your code?

someone else is facing a similar problem https://discord.com/channels/564160730845151244/1149666906857545759

I see, so yea this is true - session mechanism in Flutter SDK is not working correctly

but I'm still looking for a source of this bug

can you share your client code?

not really - its a production code, I will try to prepare something simpler but what I found for now if you init SDK not being authenticated - you can authorize and right after call database without problems if you init SDK while being authenticated - you cannot call database again after logging out and logging in

ok, I found it - problem was on our software side

multiple cookie jars

are you doing something special to the SDK with respect to the cookie jar? 馃

that was one of the most basic problems tbh 馃槃 in one of our projects we forgot to have appwrite sdk clients as singletons so there were more than 1 client
Recommended threads
- Hola equipo de soporte,
Hola equipo de soporte, Estoy desarrollando una Function en Appwrite Cloud con Node.js 22 y el siguiente package.json: {聽聽"name":聽"upload-whitelist",聽聽"type"...
- Function running in cloud but not locall...
Hi everyone, I have an appwrite function which is on python3.12 runtime. I have a library (hnswlib) which builds wheels during installation. This works on appwr...
- Permissions for bulk operation
Hi team, I have a question: 鈥淚n the databases.createDocuments bulk API, can I set document-level permissions? If yes, how exactly should I include the permissio...
