Skip to content

Conversation

@jlowin
Copy link
Owner

@jlowin jlowin commented Sep 29, 2025

Fixes the websockets.legacy deprecation warning in Python 3.13 by configuring uvicorn to use ws="websockets-sansio" instead of the deprecated implementation.

Also moves websockets from optional to required dependency since it's needed to avoid the warning.

Closes #1166

Configure uvicorn to use ws='websockets-sansio' instead of the deprecated
websockets.legacy implementation. Move websockets from optional to required
dependency to ensure the non-deprecated implementation is always available.

Fixes #1166
@marvin-context-protocol marvin-context-protocol bot added bug Something isn't working. Reports of errors, unexpected behavior, or broken functionality. http Related to HTTP transport, networking, or web server functionality. dependencies Updates to project dependencies. Automatically applied to dependabot PRs. labels Sep 29, 2025
@jlowin jlowin merged commit e8673b4 into main Sep 29, 2025
9 of 11 checks passed
@jlowin jlowin deleted the websockets branch September 29, 2025 19:24
@jlowin jlowin mentioned this pull request Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working. Reports of errors, unexpected behavior, or broken functionality. dependencies Updates to project dependencies. Automatically applied to dependabot PRs. http Related to HTTP transport, networking, or web server functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warning on SSE startup w/ 3.13: websockets.legacy is deprecated

2 participants