django-defender: 0.9.5 doesn't work without defining password for redis anymore
Hello!
After upgrading to 0.9.5 if no password defined for redis url will throw an error:
redis.exceptions.DataError: Invalid input of type: 'NoneType'. Convert to a bytes, string, int or float first.
redis.exceptions.AuthenticationWrongNumberOfArgsError: wrong number of arguments for 'auth' command
On 0.9.4 works fine.
BR, Dacian
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 2
- Comments: 36
Commits related to this issue
- fixing issue #219 don't add redis username by default — committed to jazzband/django-defender by kencochrane a year ago
- fixing issue #219 don't add redis username by default (#227) * fixing issue #219 don't add Redis username by default — committed to jazzband/django-defender by kencochrane a year ago
That error happend to me too and also only on the production server. What I did was:
/etc/redis/redis.confor via redis-cli):settings.py:That’s it. To see blocked users/ips:
To quick check, for example, if the user “admin” is blocked:
To quick unblock user “admin”: