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
- Session not found. Please run appwrite l...
I have encounter an issue with appwrite CLI They asking for a login session but in the doc, it’s mention that only setup client with endpoint / api key is enou...
- SELF HOSTING ISSUE, DATA NOT MIGRATING T...
Hey, devs, I recently tried to migrate my cloud instance to a self hosted version but my data is not transferred fully only the table structure is transferred ...
- No Document ID?
Hi I have a self hosted appwrite. My documents get a document ID but are not visible in the console. I don't know why this happens and how to fix this