[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
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!
- Increase by operators
I see appwrite have bunch of useful operators for querieng db. One more I would like to suggest is operators like increase the count of a int columns by 1,2.. ...
- One-time Cloud migration blocked by data...
Hi, I’m blocked on a one-time migration from Appwrite Cloud to my self-hosted Appwrite instance. We already fixed the region issue, and the migration now corre...