Skip to content

Cannot load avatars from GitHub Enterprise URLs #416

Closed

Description

@lumaxis
  • 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.

Activity

  1. added
    github
    bug
    on Sep 11, 2018
  2. shana commented on Sep 11, 2018

    @shana
    Contributor

    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.

  3. lumaxis commented on Sep 11, 2018

    @lumaxis
    Author

    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.

  4. added
    feature-request
    and removed
    bug
    on Feb 1, 2019
  5. StanleyGoldman commented on Apr 17, 2019

    @StanleyGoldman
    Contributor

    Just to document what isn't working

    image

  6. ELLIOTTCABLE commented on Apr 13, 2022

    @ELLIOTTCABLE

    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

Metadata

Metadata

Labels

GitHubEnterprisefeature-requestgithub

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions