Skip to content
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

"Mark all as read" sometimes doesn't mark notifications as read #2381

Open
taoeffect opened this issue Oct 19, 2024 · 0 comments
Open

"Mark all as read" sometimes doesn't mark notifications as read #2381

taoeffect opened this issue Oct 19, 2024 · 0 comments
Assignees
Labels
App:Frontend Kind:Bug Kind:Core Anything that changes or affects the fundamental core data structures & design of the application. Priority:High

Comments

@taoeffect
Copy link
Member

Problem

A revival of a previous issue but for a different reason it seems.

a
b

Server logs seem to suggest that perhaps when a tab has fallen asleep or has been unloaded by Brave, something with the time gets out of whack:

[2024-10-19 07:17:32.713 -0700] ERROR (123): Debug: auth, unauthenticated, error, chel-shelter 
    Error: Authentication failed
    at Object.authenticate (/home/unpriv/gi/backend/auth.js:47:43)                                                  
    at exports.Manager.execute (/home/unpriv/gi/node_modules/@hapi/hapi/lib/toolkit.js:51:36)
    at module.exports.internals.Auth._authenticate (/home/unpriv/gi/node_modules/@hapi/hapi/lib/auth.js:258:58)
    at authenticate (/home/unpriv/gi/node_modules/@hapi/hapi/lib/auth.js:234:21)
    at Request._lifecycle (/home/unpriv/gi/node_modules/@hapi/hapi/lib/request.js:372:68)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Request._execute (/home/unpriv/gi/node_modules/@hapi/hapi/lib/request.js:280:9)
[2024-10-19 07:18:12.318 -0700] INFO (123): [pubsub] Disconnecting irresponsive client 2122
[2024-10-19 07:46:43.282 -0700] INFO (123): [pubsub] Disconnecting irresponsive client 2123
[2024-10-19 08:47:15.597 -0700] INFO (123): [pubsub] Disconnecting irresponsive client 2124
[2024-10-19 09:18:36.407 -0700] WARN (123): Shelter authorization failed
    err: {
      "type": "Error",
      "message": "Invalid signature time range",
      "stack":
          Error: Invalid signature time range
              at verifyShelterAuthorizationHeader (/home/unpriv/gi/shared/domains/chelonia/utils.js:766:11)
              at Object.authenticate (/home/unpriv/gi/backend/auth.js:43:72)
              at exports.Manager.execute (/home/unpriv/gi/node_modules/@hapi/hapi/lib/toolkit.js:51:36)
              at module.exports.internals.Auth._authenticate (/home/unpriv/gi/node_modules/@hapi/hapi/lib/auth.js:258:58)
              at authenticate (/home/unpriv/gi/node_modules/@hapi/hapi/lib/auth.js:234:21)
              at Request._lifecycle (/home/unpriv/gi/node_modules/@hapi/hapi/lib/request.js:372:68)
              at processTicksAndRejections (node:internal/process/task_queues:95:5)
              at Request._execute (/home/unpriv/gi/node_modules/@hapi/hapi/lib/request.js:280:9)
    }

Solution

I clicked "Mark all as read" multiple times and the same error came up. I was forced to refresh the page.

Perhaps when this error is triggered, we could automatically perform whatever updates are needed without requiring user to refresh page.

@taoeffect taoeffect added Kind:Bug App:Frontend Priority:High Kind:Core Anything that changes or affects the fundamental core data structures & design of the application. labels Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App:Frontend Kind:Bug Kind:Core Anything that changes or affects the fundamental core data structures & design of the application. Priority:High
Projects
None yet
Development

No branches or pull requests

2 participants