Skip to content

None/nil answer from SADD command? #46

@ov7a

Description

@ov7a

I am using redis-py client. It expects an int answer from SADD command, but

  File "worker.py", line 305, in update_list
    rserver.sadd(key, *members)
  File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 1477, in sadd
    return self.execute_command('SADD', name, *values)
  File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 565, in execute_command
    return self.parse_response(connection, command_name, **options)
  File "/usr/local/lib/python2.7/dist-packages/redis/client.py", line 579, in parse_response
    return self.response_callbacks[command_name](response, **options)
Thread-2    <type 'exceptions.TypeError'>: int() argument must be a string or a number, not 'NoneType'

Same thing happens with LLEN. What does it mean? According to Redis protocol, this shouldn't happen.

Also, I get sometimes records like this in logs:

00:52:49.556 [info] Unexpected info: {#Ref<0.0.0.38537>,{ok,<<MY_DATA_HERE>>}}

It has nothing to do with None answer, happens rarely, but can be related somehow.
I had same issues with building as in #44, maybe this is also can be related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions