I have ask for help to the core teams as they can check your account and the error you're getting, please until you get an answer
[SOLVED] Appwrite internal server error while creating the document
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 1: Thread
ok
Oh I saw something avatarUrl is an object and not a string
It should be const avatarUrl = await avatars.getInitials(user.name);
Rank 1: Thread
but i have written the same expression
Rank 1: Thread
@Guille
Rank 1: Thread
'await' has no effect on the type of this expression. when i am writing await in this expression I am getting this
Try this:
const newUser = await saveUserToDB({ accountId: newAcc.$id, name: newAcc.name, email: newAcc.email, imageUrl: avatarUrl.href, username: user.username, });I haven't used the Avatar API.
If that doesn't work please post the output of avatarUrl
Rank 1: Thread
but my imageUrl is of type url in attributes
Rank 1: Thread
@Guille
I'm not totally sure, but that should be a string URL, not a URL object
Rank 1: Thread
ok but my avatar url is saving correctly in data base
Rank 1: Thread
@Guille
Ok so, lets wait until the team core can give more information about your issue
Rank 1: Thread
ok please let me know
Appwrite internal server error while creating the document
FYI, it's best to wrap code in backticks to format a bit nicer. You can use 1 backtick for inline code (https://www.markdownguide.org/basic-syntax/#code) and 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting.
Also, please don't tag people like this as it can be highly disruptive. Please post and wait
what's your project ID?
Rank 1: Thread
65423467b1fa73662c59 this is my project id
you have various relationships on this collection. Maybe you're missing permissions on one of the related collections
Rank 1: Thread
solved
what was the solution?
Rank 1: Thread
in my saved collection I left the permissions
[SOLVED] Appwrite internal server error while creating the document