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

3.4.0 breaks connecting with connection URL #1278

Closed
jbasko opened this issue Feb 1, 2020 · 1 comment
Closed

3.4.0 breaks connecting with connection URL #1278

jbasko opened this issue Feb 1, 2020 · 1 comment

Comments

@jbasko
Copy link

jbasko commented Feb 1, 2020

Version: 3.4.0

Platform: Python 3.7.5, OS X and Linux

Description:
This code:

import os

import redis

r = redis.StrictRedis.from_url(os.environ["REDIS_URL"])
print("set key1 123")
print(r.set('key1', '123'))
print("get key1")
print(r.get('key1'))

raises:

set key1 123
Traceback (most recent call last):
  File "scripts/test_redis.py", line 8, in <module>
    print(r.set('key1', '123'))
  File "~/.pyenv/versions/skdb/lib/python3.7/site-packages/redis/client.py", line 1772, in set
    return self.execute_command('SET', *pieces)
  File "~/.pyenv/versions/skdb/lib/python3.7/site-packages/redis/client.py", line 881, in execute_command
    conn = self.connection or pool.get_connection(command_name, **options)
  File "~/.pyenv/versions/skdb/lib/python3.7/site-packages/redis/connection.py", line 1178, in get_connection
    connection.connect()
  File "~/.pyenv/versions/skdb/lib/python3.7/site-packages/redis/connection.py", line 559, in connect
    self.on_connect()
  File "~/.pyenv/versions/skdb/lib/python3.7/site-packages/redis/connection.py", line 633, in on_connect
    if nativestr(self.read_response()) != 'OK':
  File "~/.pyenv/versions/skdb/lib/python3.7/site-packages/redis/connection.py", line 739, in read_response
    raise response
redis.exceptions.ResponseError: wrong number of arguments for 'auth' command

The connection URL is like the ones used on Heroku:
redis://h:[email protected]:12345

Doesn't happen with 3.3.11

@zyv
Copy link

zyv commented Feb 1, 2020

This is a duplicate of #1274.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants