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

当连接 redis 时指定参数 decode_responses=True 时,读取时 100%报错 #59

Closed
Monster0303 opened this issue Sep 22, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@Monster0303
Copy link

Monster0303 commented Sep 22, 2023

必现的关键参数就是这个 decode_responses = True 时

    def connect(self, db):
        r = Tair.from_url(host=host, db=db, password=passwd, decode_responses=True)

必现bug,当连接 redis 时指定参数 decode_responses=True 时,如果使用 exhash 或 exzset 类型,读取时 100%报错
image

exhash 类型也有一样的 bug,只要指定了 decode_responses=True,必现
image

经过提工单(000B99A97C)核实,确实需要优化,让我来这边反馈下
image
image

希望 tair-py 也可以做下兼容,谢谢

@Monster0303
Copy link
Author

目前我只用到了 exzset 和 exhash,但猜测这种错误会出现在所有 tair 特有的数据类型中

@yangbodong22011 yangbodong22011 added the enhancement New feature or request label Sep 25, 2023
@yangbodong22011
Copy link
Member

@Monster0303 感谢反馈,此优化正在进行中。在此之前,请您使用 decode_responses 的默认参数:False。

@yangbodong22011
Copy link
Member

@Monster0303 PR 合并了,并发布了 1.3.7 版本。可以试试。

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

No branches or pull requests

2 participants