I am getting a weird error when I am trying to create an account
[Error] URL: /v1/account
[Error] Type: Utopia\Database\Exception\Structure
[Error] Message: Invalid document structure: Unknown attribute: "passwordHistory"
[Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
[Error] Line: 2504```
Here is the code that is running
```import "../../app.css";
import loginimg from "$lib/assets/login.jpg";
import { Client, Account, ID } from "appwrite";
const client = new Client();
const account = new Account(client);
client
.setEndpoint("http://localhost:3080/v1") // Your API Endpoint
.setProject("63db6c4c0a25ec0b287d"); // Your project ID
async function handleSubmit() {
const formData = new FormData(event.target);
const name = formData.get("name");
const email = formData.get("email");
const password = formData.get("password");
const response = await account.create(ID.unique(), email, password, name);
console.log(response); // Success
}```
Did you recently upgrade? What exactly did you do as part of the upgrade?
About an hour ago. I followed CMD https://appwrite.io/docs/upgrade
I might not have migrated
That would be the problem
Sorry! Thank you Steven your amazing!
Hey @BloodThermic if your issue is solved, can you set this topic as [SOLVED]?
me too
ok, i see
[SOLVED] PasswordHistory error
Recommended threads
- Rate límit reset
I've made an error in the code by not setting a limit on how much rows should i get per request because i was working with a small db for testing. Last night Iv...
- How to set permissions using the createO...
Hi, I'm trying to create a set of registers in a table using the tableDB.createOperations function, but it seems like it doesnt support/expect the usage of the ...
- Fulltext index creation fails due to Inn...
I'm running a self-hosted Appwrite 1.8.1 instance and encountering an issue when creating fulltext indexes on a collection. **The Problem:** Fulltext index cre...