[SOLVED] Appwrite internal server error while creating the document
- 0
- Self Hosted
- Databases
- Cloud
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
ok
Oh I saw something avatarUrl is an object and not a string
It should be const avatarUrl = await avatars.getInitials(user.name);
but i have written the same expression
@Guille
'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
but my imageUrl is of type url in attributes
@Guille
I'm not totally sure, but that should be a string URL, not a URL object
ok but my avatar url is saving correctly in data base
@Guille
Ok so, lets wait until the team core can give more information about your issue
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?
65423467b1fa73662c59 this is my project id
you have various relationships on this collection. Maybe you're missing permissions on one of the related collections
solved
what was the solution?
in my saved collection I left the permissions
[SOLVED] Appwrite internal server error while creating the document
Recommended threads
- My account is blocked so please check an...
My account is blocked so please unblock my account because all the apps are closed due to which it is causing a lot of problems
- Applying free credits on Github Student ...
So this post is kind of related to my old post where i was charged 15usd by mistake. This happens when you are trying to apply free credits you got from somewh...
- Having issues with login via CLI
``` ~/appwrite appwrite login --endpoint https://localhost/v1 --verbose ? Enter your email myvalidemai...