Skip to content

chore: fix async auth#693

Merged
nayutah merged 1 commit intomainfrom
support/fix-async-auth
Apr 11, 2025
Merged

chore: fix async auth#693
nayutah merged 1 commit intomainfrom
support/fix-async-auth

Conversation

@zjx20
Copy link
Copy Markdown
Contributor

@zjx20 zjx20 commented Apr 10, 2025

image

The log shows a "coroutine was never awaited" error. This is because the router uses an asynchronous auth class (i.e., GlobalHTTPAuth), but the path handler is synchronous. In this case, an unawaited coroutine is generated (but it doesn't affect the business logic). Changing all handlers in main.py to asynchronous will resolve this issue.

This PR also cleans up some unused code.

@zjx20 zjx20 requested a review from iziang as a code owner April 10, 2025 05:38
@apecloud-bot apecloud-bot added the size/M Denotes a PR that changes 30-99 lines. label Apr 10, 2025
@nayutah nayutah merged commit f87a0c9 into main Apr 11, 2025
10 of 13 checks passed
@nayutah nayutah deleted the support/fix-async-auth branch April 11, 2025 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes 30-99 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants