Skip to content

Web: job queue view drops to 'could not verify credentials' after extended watching; other tabs still navigable #419

@aaronsb

Description

@aaronsb

Summary

Leaving the web UI's job queue open for an extended period eventually causes the jobs list to disappear and a 'could not verify credentials' error to surface in its place. Logging out and back in restores the view.

Observed behavior

  • Open the jobs / queue view in the web UI and leave it running (polling).
  • After some time, the jobs list vanishes and the panel shows could not verify credentials.
  • Other parts of the UI remain navigable, including administrative areas — so the session is not uniformly invalidated from the client's perspective; only the jobs view surfaces the auth failure.
  • Workaround: log out, log back in. Jobs view returns to normal.

Why this is interesting

The inconsistency is the bug — either the session is valid (in which case the jobs endpoint should not 401), or it isn't (in which case admin areas should also reject and the UI should force re-auth). Likely candidates:

  • Jobs polling uses a token/credential path that expires on a different cadence than the rest of the app (e.g. short-lived job-scoped token vs. session JWT).
  • Token refresh isn't wired into the jobs polling loop, so it keeps replaying a stale credential while other tabs refresh on navigation.
  • The 401 isn't being handled by the global auth interceptor (no forced logout / re-auth prompt), so the user is left in a half-authenticated state.

Repro

  1. Log in to web UI.
  2. Navigate to jobs / queue view.
  3. Leave it open (exact threshold TBD — minutes-to-hours range).
  4. Observe jobs list disappears, replaced by could not verify credentials.
  5. Confirm other tabs (e.g. admin) still load.

Acceptance

  • Either the jobs view stays authenticated as long as the rest of the app does, or
  • A 401 anywhere triggers a consistent re-auth flow across the UI (no half-logged-in state).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingweb-appWeb application related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions