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

"IndexError: string index out of range" on get_message from PubSub #3444

Open
jmspereira opened this issue Nov 27, 2024 · 0 comments
Open

"IndexError: string index out of range" on get_message from PubSub #3444

jmspereira opened this issue Nov 27, 2024 · 0 comments

Comments

@jmspereira
Copy link

Version: What redis-py and what redis version is the issue happening on?
redis-py 5.2.0 with redis 7.2.4

Platform: What platform / version?
Python 3.10.12 on Ubuntu 22.04

Description:

Hey everyone,

I have an application that uses Redis in a production environment, but the service crashed during a call to the get_message method from PubSub with the following error (unfortunately I am not able to reproduce the error after several attempts):

  File "/usr/local/lib/python3.10/dist-packages/redis/client.py", line 1056, in get_message
    return self.handle_message(response, ignore_subscribe_messages)
  File "/usr/local/lib/python3.10/dist-packages/redis/client.py", line 1098, in handle_message
    "data": response[2],
IndexError: string index out of range

Do you have any ideas on how this is possible?

Best regards,
Jorge

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

1 participant