Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special characters in postgres password result in client connections being closed. #584

Open
tyndra opened this issue May 13, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@tyndra
Copy link

tyndra commented May 13, 2024

Describe the bug
I am using postgres as a broadcast channel backend.
Observed strange behavior when the client connection is being closed immediately after opening. The log files did not provide much for troubleshooting.

 2024-05-13T13:27:24.206089+0000 | fastapi_websocket_rpc.websocket_rpc_e...| INFO  | Client connection failed - 52764 :: 531a6024dc4d457ea5ad9857ddbb8ed9
 2024-05-13T13:27:24.214804+0000 | websockets.legacy.server                | INFO  | connection closed

Traced the problem to a special character in the password string. Example: bnvcGy1pU%071lS

To Reproduce
Change postgress password to bnvcGy1pU%071lS and configure the server with new connection string (OPAL_BROADCAST_URI)

Expected behavior
Allow special characters in the password string

OPAL version

  • Version: [e.g. 0.7.5]
@tyndra tyndra added the bug Something isn't working label May 13, 2024
@orweis
Copy link
Contributor

orweis commented May 13, 2024

Hi @tyndra I think this is a bug in asyncpg, that was fixed , could you check which version of asyncpg you have installed for Python running the server ?

CC: @roekatz

@tyndra
Copy link
Author

tyndra commented May 17, 2024

Version: 0.29.0

@orweis
Copy link
Contributor

orweis commented May 17, 2024

I've opened a ticket for this : ticket PER-9920

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants