Skip to content

Add more detail to 401 error#10508

Merged
gt-oai merged 1 commit intomainfrom
gt/better-401-err
Feb 3, 2026
Merged

Add more detail to 401 error#10508
gt-oai merged 1 commit intomainfrom
gt/better-401-err

Conversation

@gt-oai
Copy link
Contributor

@gt-oai gt-oai commented Feb 3, 2026

Add the error.message if it exists, the body otherwise. Truncate body to 1k characters. Print the cf-ray and the requestId.

Before:
Screenshot 2026-02-03 at 13 15 28

After:
Screenshot 2026-02-03 at 13 15 38

@gt-oai gt-oai marked this pull request as ready for review February 3, 2026 13:17
@gt-oai gt-oai force-pushed the gt/better-401-err branch from d31ad75 to 02d6e23 Compare February 3, 2026 14:32
@gt-oai gt-oai merged commit 944541e into main Feb 3, 2026
39 of 44 checks passed
@gt-oai gt-oai deleted the gt/better-401-err branch February 3, 2026 14:58
@github-actions github-actions bot locked and limited conversation to collaborators Feb 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants