redis connection url parsed in wrong way
RonaldinhoL opened this issue · 1 comments
RonaldinhoL commented
Describe the bug
a connect str like "redis://[[username]:[password]]@localhost:6379/0", the lib parse it use urllib.parse.urlparse ? of cause it will fail
To Reproduce
import aioredis
import asyncio
async def amain():
redis = aioredis.from_url("redis://username:password@localhost:6379/0")
await redis.keys()
asyncio.run(amain())
Expected behavior
connected successfully
Logs/tracebacks
ValueError: Port could not be cast to integer value as 'password'
Python Version
3.9
aioredis Version
2.0.0
Additional context
No response
Code of Conduct
- I agree to follow the aio-libs Code of Conduct
RonaldinhoL commented
nvm