`Invalid document structure: Missing required attribute "expire"` on `users.createSession()`
- 0
- Self Hosted
- Auth
I'm trying to call $users->createSession($userId). I receive a 500 Server Error, and in the Appwrite logs, I see [Error] Message: Invalid document structure: Missing required attribute "expire".
Appwrite v1.5.4 PHP SDK 11.0.1
My guess as to why this is happening - I see in POST /v1/account/sessions/token ($account->createSession()), expire is in the new Document() declaration (https://github.com/appwrite/appwrite/blob/505637d1190881d131fbe2eb003e6b27676a4387/app/controllers/api/account.php#L106), whereas in POST /v1/users/:userId/sessions ($users->createSession(), expire is added after the Document is created (https://github.com/appwrite/appwrite/blob/505637d1190881d131fbe2eb003e6b27676a4387/app/controllers/api/users.php#L1811).
Recommended threads
- 1:1 relationship doesn’t sync after re-a...
Hi, I’m trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...
- Upsert with setting permissions
Hi there, I am using self-hosted appwrite v1.7.4 and trying to use the bulk update stuff that was released with 1.7.x. Unfortunally I found that there is an ser...
- Github connection error - Self Hosted Ap...
I am trying to connect my github account to deploy a project to sites, but Connect to Gtihub button is disabled. I have configured all Env variables needed for...