When I try to use createEmailPasswordSession() I get this error appearing in the logs each time:
TypeScript
[Error] Timestamp: 2024-03-08T22:48:05+00:00
[Error] Method: POST
[Error] URL: /v1/account/sessions/email
[Error] Type: Utopia\Database\Exception\Structure
[Error] Message: Invalid document structure: Unknown attribute: "factors"
[Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
[Error] Line: 3070
TL;DR
Issue: Error "Invalid document structure: Unknown attribute: 'factors'" when using createEmailPasswordSession()
Developers are experiencing an error message indicating an invalid document structure with an unknown attribute 'factors' when attempting to use createEmailPasswordSession(). This issue is occurring consistently with each attempt.
Solution: The 'factors' attribute may be missing or incorrectly defined in the document structure. Review the code and the collection structure to ensure that the 'factors' attribute is properly defined and included when using createEmailPasswordSession().I did the migrations and they didn't throw up and errors at the time
What does the attribute look like in the collection?
I'm not sure how I'd view the collection for auth?
Recommended threads
- Bug: TOTP MFA verification always fails ...
*Bug: TOTP MFA verify always returns `user_invalid_token` (Cloud 1.8.1, Frankfurt)** Project ID: `68dd48440003e537d849` SDK: `appwrite@18.2.0` (also tested wit...
- User Filter/Sorting/Analytics
Currently the dashboard for users is very limited. I would like to have an option to sort by column and also to filter by column, to for example find users that...
- Unable to verify user through console du...
Hi, I am manually trying to verify a user through the console, but it is coming back with Server Error and not much detail