Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Invalid document structure: Missing required attribute "expire" on users.createSession() #8280

Open
2 tasks done
oconr opened this issue Jun 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@oconr
Copy link

oconr commented Jun 17, 2024

馃憻 Reproduction steps

This bug happens when I try to use createSession(userId) from the Node SDK, but it appears to also be happening in the PHP SDK when using $users->createSession($userId).

馃憤 Expected behavior

A session should be created for the user ID that is provided.

馃憥 Actual Behavior

The following errors gets thrown and logged

[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

馃幉 Appwrite version

Version 1.5.x

馃捇 Operating system

Linux

馃П Your Environment

I have tried this on both Appwrite 1.5.4 and 1.5.7, both running on a DigitalOcean droplet. I'm using the latest version of the Node SDK

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@oconr oconr added the bug Something isn't working label Jun 17, 2024
@oconr
Copy link
Author

oconr commented Jun 17, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant