Skip to content

Log account-facts-sync reason codes for post-auth 503 - #392

Merged
Pigbibi merged 1 commit into
mainfrom
chore/ft-afs-503-reason-debug
Oct 9, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
chore/ft-afs-503-reason-debug

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Auth for /account-facts-sync is past 401 (scheduler Authorization from SM + OIDC). Latest invoke returned HTTP 503 / scheduler status 14 with response size matching account_facts_unavailable, but access logs have no reason body.

This PR:

  • Logs collect/build/publish reason= and client exc_type= (no secrets)
  • Maps FirstradePlatformError from connect_read_only to readonly_client_unavailable
  • Widens auth-debug + invoke log filters so the next scheduler run surfaces the failure cause

No trading-mode / strategy change.

Surface collect/build/publish reason= and client exc_type in Cloud Run
logs, map FirstradePlatformError to readonly_client_unavailable, and
widen AFS debug/invoke log filters so the next scheduler invoke shows
why the post-auth 503 happened.
@Pigbibi
Pigbibi merged commit a4b6da5 into main Oct 9, 2026
@Pigbibi
Pigbibi deleted the chore/ft-afs-503-reason-debug branch October 9, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant