createSession() throws Invalid document structure: Missing required attribute "expire"
- 0
- Self Hosted
- Auth
- Web
I am running self-hosted 1.5.4 with the latest version of node-appwrite
. When I try to use createSession()
I get this error:
[Error] Timestamp: 2024-06-14T12:44:49+00:00
[Error] Method: POST
[Error] URL: /v1/users/:userId/sessions
[Error] Type: Utopia\Database\Exception\Structure
[Error] Message: Invalid document structure: Missing required attribute "expire"
[Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
[Error] Line: 3070
As far as I am aware I am using it correctly, passing the user ID to createSession()
but it's still asking me to provide an "expire" value which doesn't seem to be supported on node-appwrite
I've also gone through the change logs for Appwrite between 1.5.4 and the latest version and couldn't see anything regarding createSession()
so I didn't think my version had anything to do with issue
This error is appearing in the docker logs, the error returned from node-appwrite
is just general_unknown
Recommended threads
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...
- Can't login or deploy functions in Appwr...
Hello, since i updatet to the appwrite cli 6.1.0 i can't login or deploy functions with the cli. When i call the command: "appwrite get account --verbose" i ge...