Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: Profile image not loading for invited team member #1578

Closed
2 tasks done
ChiragAgg5k opened this issue Dec 27, 2024 · 1 comment
Closed
2 tasks done
Labels
bug Something isn't working product / auth Fixes and upgrades for the Appwrite Auth

Comments

@ChiragAgg5k
Copy link
Member

👟 Reproduction steps

  1. Invite a user to your team.
  2. Image doesn't show
Image

👍 Expected behavior

It should show an image.

👎 Actual Behavior

Image isn't showing. Here is the error from network call:

Image
{
    "message": "Invalid `name` param: Value must be a valid string and at least 1 chars and no longer than 128 chars",
    "code": 400,
    "type": "general_argument_invalid",
    "version": "1.6.1"
}

So this happens because the url https://cloud.appwrite.io/v1/avatars/initials?name=&width=80&height=80&project=console&name=&width=80&height=80&project=console
has the name parameter as none, since the invited user's name wasn't specified (it was optional)

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@ChiragAgg5k ChiragAgg5k added the bug Something isn't working label Dec 27, 2024
@stnguyen90
Copy link
Contributor

Similar to #1598, we should fallback to using the email address for the name param if there is no name.

@stnguyen90 stnguyen90 added the product / auth Fixes and upgrades for the Appwrite Auth label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working product / auth Fixes and upgrades for the Appwrite Auth
Projects
None yet
Development

No branches or pull requests

2 participants