You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Version: 3.4.0
Platform: Python 3.7.5, OS X and Linux
Description:
This code:
raises:
The connection URL is like the ones used on Heroku:
redis://h:[email protected]:12345
Doesn't happen with 3.3.11
The text was updated successfully, but these errors were encountered: