-
Notifications
You must be signed in to change notification settings - Fork 275
Description
🔍 Is there already an issue for your problem?
- I have checked older issues, open and closed
📝 Description
I can't write the details because this problem only occurs in notifications from private GHE server. Sorry.
Problem
In my environment, notifications that I have already “Marked as read” are displayed every time I refresh Gitify, and other new notifications are not loaded.
Debugging
When I checked by starting up the Developer Tool, I found that a status code of 205 was being returned for the “Mark as read” process, and /api/v3/notifications
returned 200. I found that it had already been marked as read in the GHE Server.
I refreshed the Gitify, then this notification appeared again on Gitify. This was the same even if I refreshed the page after marking the notification as read multiple times. Also, in this state, Gitify does not load new notifications from the GHE Server.
However, if I enable “Disable cache” from the Developer Tools, everything will work fine. Gitify will display new notifications and will no longer display notifications that have already been read.If I turn off “Disable cache”, it will return to its original state.
What I found interesting was that when Disable cache was turned off, it looked like no requests were actually being sent when refreshing notifications manually.
Developer Tool shows the message as follows:
When I hover over the mouse cursor, the overlay will display as follows.
Only provisional headers are available because the request was not sent over the network and instead was served from a local cache, which doesn't store the original request headers. Disable cache to see full request headers.
It seems that Gitify's requests to the GHE Server may include an If-Modified-Since
header. When I made a request with this header using the gh api
command, I got the following result.
$ gh api --hostname xxx.xxx.xxx \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-H 'If-Modified-Since: Tue, 29 Oct 2024 04:57:09 GMT' \
'/notifications?participating=false'
gh: HTTP 304
$ gh api --hostname xxx.xxx.xxx \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
'/notifications?participating=false'
[]
🪜 Steps To Reproduce
Use GHE Server.
- Press "Mark as read" for new notifications
- Press "Refresh notifications"
Gitify Version
5.16.1
Operating System
macOS
GitHub Account
Combination
📸 Screenshots
No response