RyanOriginal post
Moderator
When I try to use createEmailPasswordSession() I get this error appearing in the logs each time:
[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
Summary
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().