[SOLVED] Appwrite internal server error while creating the document
- 0
- Resolved
- 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
- proccessing problems
A database schema operation is stuck in my Frankfurt project. In the matryq database, the workspaceId attribute of the coaching_activity_entries collection rema...
- User column is processing
I am still encountering the processing tag after creating a column in my database. and its not a network or refresh issue, i have refreshed over and over, shutd...
- Error upgrading from 1.8.1 to 1.9.0
DO Self-hosted server failed to upgrade with this error "Error response from daemon: client version 1.52 is too new. Maximum supported API version is 1.42". U...