Skip to content

fix: use correct logging format specifier in OAuth state validation#2841

Merged
hayescode merged 1 commit intoChainlit:mainfrom
mgquach:fix/oauth-state-logging-format-2692
Apr 1, 2026
Merged

fix: use correct logging format specifier in OAuth state validation#2841
hayescode merged 1 commit intoChainlit:mainfrom
mgquach:fix/oauth-state-logging-format-2692

Conversation

@mgquach
Copy link
Copy Markdown
Contributor

@mgquach mgquach commented Mar 12, 2026

Fix format string error in OAuth state validation logging — %1 is not a valid
Python logging format specifier and causes a ValueError when the exception handler runs.

Change

  • Replace %1 with %s in logger.exception() call in backend/chainlit/server.py

Fixes #2692


Summary by cubic

Fix logging format specifier in OAuth state validation by replacing %1 with %s to prevent a ValueError in the exception handler.

Written for commit 650cbf9. Summary will update on new commits.

Replace %1 with %s in logger.exception() call to prevent ValueError
when OAuth state validation fails.
Fixes Chainlit#2692
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. auth Pertaining to authentication. labels Mar 12, 2026
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open for 14 days with no activity.

@github-actions github-actions Bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Mar 27, 2026
Copy link
Copy Markdown

@Proteusiq Proteusiq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be added to the next release. We are experience error logs :)

@github-actions github-actions Bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Mar 28, 2026
Copy link
Copy Markdown
Contributor

@hayescode hayescode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed via Codex

LGTM.

@hayescode hayescode added this pull request to the merge queue Apr 1, 2026
Merged via the queue into Chainlit:main with commit cead389 Apr 1, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auth Pertaining to authentication. size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OAuth State Validation Logging Format Bug

3 participants