[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
- Login Error 500
Hey i have that Problem, i upgrade to the latest version and now i have this error but only on my custom domain not the main domain.. when i try to login
- Realtime Disconnects and Error: INVALID_...
Hi! I just want to ask here if there's any workaround with the disconnect issues we're encountering when subscribing to realtime events in react native using ex...
- Upgrading from 1.2.0
Hello... I haven't upgraded my appwrite since 1.2.0 ...So it's been some time... If I want to get to 1.7.x ... Can I just upgrade directly or do I need to do s...
