-
Notifications
You must be signed in to change notification settings - Fork 258
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
Broken avatar on GHE (again) #1224
Comments
thanks for reporting @LunaticMuch so to confirm, the avatar url returns a valid image, but renders as broken 🤔 |
Yes. I checked the code, the console, but I can get my head around it. I only suspected the cookie, but also I cannot see the "relationship" |
Puzzling indeed... together I'm sure we'll get to the bottom of it 🤝 Any chance you are able to run gitify from the source code to see if that has the same issue? 🤞
|
I also wonder whether there's a network request for the image at all? Maybe there's a security policy that prevents the loading, for instance. Would need @LunaticMuch to check that, I don't have GHE to try to repro |
@setchy and @bmulholland I can definitely help... give me a bit, feels more a debug I need to squeeze after work 😄 |
absolutely! thank you again @LunaticMuch 🙇 |
First debug session, following your guidance @setchy
|
Looks like you have |
The default icons used for workflows (and as a default when no avatar available) are from the primer/octicons package |
Perhaps a fix lies in setting the crossorigin attribute on the img tags... https://www.geeksforgeeks.org/how-to-allow-cross-origin-use-of-images-and-canvas/ @LunaticMuch - when you said these urls load in a new tab, was that in an incognito/private or a regular instance? |
@LunaticMuch - just wanted to confirm if you're still experiencing this issue? |
Closing as stale. Happy to reopen if others report more details to help triage |
I can confirm the issue still occurs as of today |
@mislavperi - are you able to share further details please, such as Gitify version, GitHub account type(s), OS type. Any log screenshots would also be useful (via Developer Tools network console or app log file) |
@setchy Yes I'll get you those today |
Perfect! I've also been wondering if these broken avatars also occur on this feature branch which uses the official GitHub Primer avatar components |
@setchy Here are the inspect element network tab and console errors I get |
HTTP 302 hey... So is there a suggested new location? If you get the chance to test Gitify locally using that branch I shared, I'd love to hear if this is natively resolved within the GitHub component library |
|
Thanks for testing the branch @mislavperi. 🙏 Back to the drawing board then 😅. I'm curious if this happens for ALL GHE users or a smaller cohort 🤔 |
Let me know if you need any help @setchy |
We'd love a hand @mislavperi since none of the maintainers are able to recreate this bug and find an effective solution. If you are able to spend some time digging deeper that would be greatly appreciated. As an aside, I've been thinking about interim "hacks" to address the broken avatar images experience which is not ideal... perhaps we should use the default GitHub Mark Icon avatar (either for ALL GHE accounts, or, through a user setting)... at least until we find the root of the issue |
@pddg - as a GHE user, do you also have this broken avatar issue? |
The avatar image was corrupted when a problem occurred connecting to the GHE Server. Open/Close window, reload manually does not help. Open settings and return to the notifications list will recover the avatar image. |
Ah ha, that's helpful insight @pddg. |
@setchy In my case, it refuses to connect after initial configuration was defined, I'll spin up the instance locally and see why it might be happening |
🔍 Is there already an issue for your problem?
📝 Description
In a GHE situation, avatars for users are broken.
This seems similar to #564 but in fact is not.
Looking at the inspector tab, the
src
for the image is correctly populated and points a valid image if I open it from my browser.Incidentally, I have an amount of warnings as
Whether that's the real problem or not...I am yet to understand. I cannot find any other error.
🪜 Steps To Reproduce
Gitify Version
5.7.0
Operating System
macOS
GitHub Account
GitHub Enterprise
📸 Screenshots
The text was updated successfully, but these errors were encountered: