#[Solved]internal Server error

86 messages · Page 1 of 1 (latest)

red dragon
astral kiln
#

500(Internal Server Error) is server-side error.

#

I think your server is not working very well.

red dragon
#

i'm a freelance and i worked from my house

astral kiln
#

where are u from?

red dragon
#

reunion island in indian ocean

astral kiln
#

I am also freelancer.

red dragon
#

nice to meet you

astral kiln
#

Recently, I have finished my project so I am gonna find the new job.

red dragon
#

good for you

astral kiln
#

I am interested in backend developing using python, rust and so on.

#

what is your major skill?

red dragon
#

javascript, typescript (but not efficient) node, react, angular, symfony,

astral kiln
#

oh, great.

red dragon
#

where are you from ?

astral kiln
#

I am from Japan.

#

but now i live abroad.

red dragon
#

before i used angular but during the 2 past years i use more react

#

where exactly abroad?

astral kiln
#

Denmark

red dragon
#

can we share screen for help ?

#

my screen

#

if you have time

astral kiln
#

do you need my help?

red dragon
#

yes please

#

you said that my problem come from my server but when i create an account in appwrite , everything goes well

astral kiln
#

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.

red dragon
#

can i share my screen with you?

#

just few minutes

#

😫

frozen sonnet
frozen sonnet
red dragon
#

OP ??

frozen sonnet
red dragon
#

It’s better to use self/hosting?

frozen sonnet
red dragon
#

Do you know a recent repo that use appwrite where it works ? @frozen sonnet

#

Otherwise i will put my code tomorrow

frozen sonnet
red dragon
#

But I use tanstack query and React with context

frozen sonnet
red dragon
#

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)
}

}

frozen sonnet
red dragon
#

Yes

knotty aurora
#

Im a also getting same in flutter

#

no error in code, and documents are creating succesfully, but still getting 500

frozen sonnet
knotty aurora
#

Im using cloud

frozen sonnet
red dragon
#

No data into my players table but in users yes

knotty aurora
#

it was working yesterday and I didn't change anything in code and cloud console, today I'm getting 500

frozen sonnet
#

Or same issue there?

knotty aurora
#

and its happening only one collection, remaining all working fine

red dragon
#

Yes i made a signup form i test with data it works fine

frozen sonnet
red dragon
knotty aurora
#

@frozen sonnet yes working, no changes made

frozen sonnet
red dragon
#

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

frozen sonnet
#

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

paper stratus
#

Anyone still seeing 500 errors?

knotty aurora
#

yes

paper stratus
# knotty aurora yes

please create a separate post with details about what you're doing to cause it

red dragon
#

@leaden ermine here it is in the browser

red dragon
#

i try to use appwrite extension to vscode . it doesn't work. help me !!

paper stratus
#

What's your project id?

paper stratus
# red dragon

Is date of birth a datetime attribute in Appwrite? If so, what exactly are you passing to Appwrite?

red dragon
red dragon
paper stratus
red dragon
#

i change the date of birth attribute. i put string but it's the same problem

obtuse karma
red dragon
#

ok i think i find a solution. const newPlayer = await databases.createDocument( appwriteConfig.databaseId, appwriteConfig.playersCollectionId, documentId, player, ** [ Permission.write(Role.any()) ]** )

#

j'ai rajouté [ Permission.write(Role.any()) ]