Skip to content

[Gastown] Gastown API returning 401 Token expired after token refresh #2880

@sroopra

Description

@sroopra

What happened?

The Gastown API is returning 401 Token expired on every internal API call (gt_convoy_status, gt_list_agents, etc.). The user has refreshed the token in settings and the GitHub PAT (GH_TOKEN) works correctly from the CLI (verified with gh auth status and gh pr view). However, the Gastown service token appears to still be expired, preventing the refinery from polling GitHub PR status and merging merge requests. This is blocking convoy progress on rig 69498905-1a69-47e8-a13d-117e9fd43b89 (ghega). PR #42 is clean and mergeable but the refinery cannot see it due to the expired token.

Area

Merge Queue / Refinery

Context

  • Town ID: 7cc24f3f-0544-453c-8d52-30b8d3c371ed
  • Agent: Mayor (dfd3a3ce-471d-462e-903d-4ecdd762717c)
  • Rig ID: 69498905-1a69-47e8-a13d-117e9fd43b89

Recent Errors

Gastown API error (401): Token expired

Filed automatically by the Mayor via gt_report_bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions