gitify-app / gitify

GitHub notifications on your menu bar. Available on macOS, Windows & Linux.
https://gitify.io
MIT License
4.5k stars 258 forks source link

Gitify does not send any notification from github.com if it is not able to access to GitHub Enterprise server. #423

Closed pddg closed 2 months ago

pddg commented 4 years ago

Environment

Expected behavior

Notification of github.com is appeared even if Gitify cannot reach GitHub Enterprise (GH:E) server (i.e. server downed, or disconnected from the networks of GH:E server...etc).

Actual behavior

In my environment, I use VPN to connect to GH:E server. Gitify doesn't send any notifications from github.com during disabling the VPN. If the VPN is enabled (Gitify becomes to be able to connect to GH:E server), Gitify send the notifications from both of github.com and GH:E.

lilyball commented 4 years ago

It doesn't just not send notifications, but it also replaces the entire UI with a "Something went wrong" page so I can't even check the notifications myself.

bmulholland commented 1 year ago

Notifications and displaying the window both require information from the server. If it can't contact the server, it doesn't know what to display. Beyond that, none of the buttons/links would work. We could perhaps improve caching and display that, but that's a lot of work for a very minor benefit in a niche scenario. I don't think it's worth the work.

pddg commented 1 year ago

Github.com and GH:E server are independent entities, and failures can occur at each. Not being able to display both when one is inaccessible is not the behavior expected by users, I think.

However, I do not know how difficult it would be to change this behavior, so I respect the maintainer's decision.

bmulholland commented 1 year ago

Oh, I misread 😅

Yeah that makes more sense. I think the requests could be more resilient for errors.

setchy commented 7 months ago

I think fetchNotifications will need to be tweaked to support this.

https://github.com/gitify-app/gitify/blob/f4053f529f92ba8740ee570be349001855cb1e66/src/hooks/useNotifications.ts#L64

@pddg - contributions welcomed 🙏

afonsojramos commented 6 months ago

This also happens in the case that a specific organisation requires SAML Authorisation.

image