WildAnimalOriginal post
Rank 2: Process
While calling account.createRecovery method to cloud.appwrite.io using web sdk, I got General Unknown 500 Error. I have checked my codes and cloud configuration items, and there are no issues. My project id is: yijiangaitu
export const createRecovery = async (email: string, url: string) => {
const account = getAccount();
return (
email &&
url &&
(await account.createRecovery(email, url).then(
() => {
return Promise.resolve();
},
(error) => {
return Promise.reject(error.message);
}
))
);
};
result:
{
"message": "Server Error",
"code": 500,
"type": "general_unknown",
"version": "0.12.48"
}
Summary
The developer is experiencing a General Unknown 500 Error while calling the `account.createRecovery` method. They have checked their codes and cloud configuration items but found no issues. They are wondering if the fact that the project ID matches the ID of a previously created (but deleted) project could have an impact. The code provided includes functions `getClient` and `getAccount` which are used to configure the client and account.
There is no solution mentioned in the thread. Further investigation may be needed to troubleshoot the General Unknown 500 Error.