Skip to content

Cannot load avatars from GitHub Enterprise URLs #416

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

Closed
lumaxis opened this issue Sep 11, 2018 · 4 comments · Fixed by #1096
Closed

Cannot load avatars from GitHub Enterprise URLs #416

lumaxis opened this issue Sep 11, 2018 · 4 comments · Fixed by #1096
Assignees
Labels
feature-request Request for new features or functionality github Related to GitHub API GitHubEnterprise

Comments

@lumaxis
Copy link

lumaxis commented Sep 11, 2018

  • Extension version: 0.1.2
  • VSCode Version: 1.28.0-insider
  • OS: macOS 10.13.6

Steps to Reproduce:

  1. Open a Pull Request from a GitHub Enterprise repo
  2. Add a PR comment

Screenshot:

image

This is likely because the user.avatar_url is used without authentication.

@rebornix rebornix added github Related to GitHub API bug Issue identified by VS Code Team member as probable bug labels Sep 11, 2018
@shana
Copy link
Contributor

shana commented Sep 11, 2018

Ah, enterprise avatars. There's some scenarios where retrieving avatars from enterprise will always fail regardless of authentication, and others where it will potentially spam the enterprise instance repeatedly if there are a lot of avatars to load - enterprise has a very short cache time for avatars (so they'll update quickly when you change them), which is a problem for clients loading them without caching.

GitHub Desktop has some workarounds for this in https://github.com/desktop/desktop/blob/master/app/src/lib/gravatar.ts and related calls.

@lumaxis
Copy link
Author

lumaxis commented Sep 11, 2018

Personally, I would even prefer not showing an avatar at all if it's not possible to load the actual one. This placeholder is not very pretty.

@rebornix rebornix added feature-request Request for new features or functionality and removed bug Issue identified by VS Code Team member as probable bug labels Feb 1, 2019
@StanleyGoldman StanleyGoldman self-assigned this Apr 17, 2019
@StanleyGoldman
Copy link
Contributor

Just to document what isn't working

image

@ELLIOTTCABLE
Copy link

This is still occuring for me in Nightly, several years later?

Based on #1148, it looks like VScode shouldn't even be attempting to load an avatar — and yet it still is:

Screen Shot 2022-04-13 at 3 39 10 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality github Related to GitHub API GitHubEnterprise
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants