Skip to content

AWS Elasticache Redis Serverless Implementation is raising AttributeError #473

Description

@saanpritom

Hi, Recently I was trying to implement this library with one of my current Django project. For caching I have used Redis. This project was running before with this library enabled and it was showing no errors and working fine. Because the project was deployed in Kubernetes and the Redis instance was also deployed inside Kubernetes as a pod. The connection protocol was HTTP and it was working fine.

But for some reason I had to move from Kubernetes to a different system. Now for caching I am using AWS Elasticache Redis Serverless. The connection protocol is now HTTPs. This is not an issue and can be implemented though there is no particular documentation about it. However, when the library is trying to check the version of the Redis an AttributeError has thrown.
You will get the details of the error in the below attached screenshot.

After digging down I found that the script is trying to split the version numbers. This works because the return value was in String format but for some reason it seems like the AWS Elasticache Redis Serverless is returning the value in Float format thus causing the script to fail.

cacheops_bug

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