Back

Invalid document structure: Unknown attribute: "factors"

  • 0
  • Self Hosted
  • Auth
Ryan
8 Mar, 2024, 22:50

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().
Ryan
8 Mar, 2024, 22:51

I did the migrations and they didn't throw up and errors at the time

Evdog
8 Mar, 2024, 22:54

What does the attribute look like in the collection?

Ryan
8 Mar, 2024, 22:56

I'm not sure how I'd view the collection for auth?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more