#[Solved]internal Server error
86 messages · Page 1 of 1 (latest)
500(Internal Server Error) is server-side error.
I think your server is not working very well.
i'm a freelance and i worked from my house
where are u from?
reunion island in indian ocean
I am also freelancer.
nice to meet you
Recently, I have finished my project so I am gonna find the new job.
good for you
I am interested in backend developing using python, rust and so on.
what is your major skill?
javascript, typescript (but not efficient) node, react, angular, symfony,
oh, great.
where are you from ?
before i used angular but during the 2 past years i use more react
where exactly abroad?
Denmark
do you need my help?
yes please
you said that my problem come from my server but when i create an account in appwrite , everything goes well
I think your server needs solving exceptions.
500 Internal server error issues if the server can not response
because of coding errors, server configuration issues, database errors, third-paty service errors and so on.
I think the confusion here comes from the fact that OP is using Appwrite Cloud, not Self-hosting.
What is your code, when this happens?
OP ??
Original Poster. AKA you
It’s better to use self/hosting?
That's a decision for you to make for yourself. But as is, you currently aren't
Do you know a recent repo that use appwrite where it works ? @frozen sonnet
Otherwise i will put my code tomorrow
There are demos on the Appwrite docs site (https://appwrite.io/docs)
But I use tanstack query and React with context
I just need the line where you're attempting the POST
Tomorrow i will do
const newPlayer = await savePlayerToDB({
accountId: newAccount.$id,
firstname: player.firstname,
lastname: player.lastname,
gender: player.gender,
dateOfBirth: player.dateOfBirth,
})
export async function savePlayerToDB(player: {
accountId: string;
firstname: string;
lastname: string;
gender: string;
dateOfBirth:string;
}) {
try {
const newPlayer = await databases.createDocument(
appwriteConfig.databaseId,
appwriteConfig.playersCollectionId,
ID.unique(),
player,
)
return newPlayer;
} catch (error) {
console.log(error)
}
}
And there's no error? Just the 500?
Yes
Im a also getting same in flutter
no error in code, and documents are creating succesfully, but still getting 500
Also on Cloud?
Im using cloud
Do you have data in this Collection already?
No data into my players table but in users yes
it was working yesterday and I didn't change anything in code and cloud console, today I'm getting 500
And the Users table works fine?
Or same issue there?
and its happening only one collection, remaining all working fine
Yes i made a signup form i test with data it works fine
And this was working fine with the same code and the same Collection until today? (You haven't made any changes to the Collection?)
Users table works fine
@frozen sonnet yes working, no changes made
And was your players Collection working until today? Or did you only create it today?
I create it 2 days ago but when i use my signup form the creation of the account works fine(users table) but for players table it’s an issue
Maybe if you @frozen sonnet see my code you will see something
You already posted your code? #1186216261009559653 message
Ok @red dragon @knotty aurora sounds like this is an issue with Cloud.
I'm crossposting this to #🌩│cloud - someone from Core on the Cloud team should see it there
Anyone still seeing 500 errors?
yes
please create a separate post with details about what you're doing to cause it
i try to use appwrite extension to vscode . it doesn't work. help me !!
So creating an account and session works? It's failing on creating a document?
What's your project id?
Is date of birth a datetime attribute in Appwrite? If so, what exactly are you passing to Appwrite?
656e9072351526b3f8eb
25/03/2000
you think the problem come from this ?
This is an invalid format. You need to pass an iso 8601 string
i change the date of birth attribute. i put string but it's the same problem
The issue is not the attribute, it's because you need to pass it in a string with this format:
2023-12-19T12:29:15.214Z