EniXoOriginal post
Web Developer
Hello everyone :appwritebow: ,
I'm currently trying to set up a local environment since I forked the project in order to investigate on this issue :
https://github.com/appwrite/appwrite/issues/7758
I've run this command, which effectively run the containers :
Bash
docker run --rm --interactive --tty \ --volume $PWD:/app \ composer update --ignore-platform-reqs --optimize-autoloader --no-plugins --no-scripts --prefer-distI have access to localhost:8080 but when I'm trying to log/sign I have a 500 - Internal Server Error, here's the trace from appwrite/appwrite-dev :
2024-04-20 01:40:46 [Error] Timestamp: 2024-04-19T23:40:46+00:00
2024-04-20 01:40:46 [Error] Method: POST
2024-04-20 01:40:46 [Error] URL: /v1/account/sessions/email
2024-04-20 01:40:46 [Error] Type: Utopia\Database\Exception\Structure
2024-04-20 01:40:46 [Error] Message: Invalid document structure: Unknown attribute: "factors"
2024-04-20 01:40:46 [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
2024-04-20 01:40:46 [Error] Line: 3070
2024-04-20 01:41:00 [Error] Timestamp: 2024-04-19T23:41:00+00:00
2024-04-20 01:41:00 [Error] Method: POST
2024-04-20 01:41:00 [Error] URL: /v1/account
2024-04-20 01:41:00 [Error] Type: Utopia\Database\Exception\Structure
2024-04-20 01:41:00 [Error] Message: Invalid document structure: Unknown attribute: "mfa"
2024-04-20 01:41:00 [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
2024-04-20 01:41:00 [Error] Line: 3070```
I might have missed something 🥺
Summary
Developers trying to set up a local environment for a project on Appwrite are encountering a 500 - Internal Server Error when trying to log in. The error message shows issues with unknown attributes "factors" and "mfa". The error seems to stem from the database structure in the code. Check the database configuration and ensure it aligns with the project's requirements to resolve the issue.