`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
- TOO_MANY_REDIRECTS after temporarily ena...
I am losing my mind over this, I enabled this setting because I was having issues with sites not making links with https. I enabled it, ran into issues, so I di...
- Flutter OAuth2 does not attach Google se...
Hi Appwrite team, I’m using Appwrite Auth in a Flutter mobile app and trying to upgrade an anonymous user to Google OAuth. Docs say that if there is already a...
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...