Closed dgsangoma closed 1 year ago
I believe you're right. a valid Redis URL has a number (the database number) as the path and hubot-redis-brain assumes it's the prefix. I'll have to change the code and design to match that expectation.
:tada: This issue has been resolved in version 2.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
With hubot-redis-brain 1.1.6 / redis 4.6.7, using a REDIS_URL like "redis://redis.myhost.com:6379/my-bot-name" throws the following error:
Looking into the redis source, it looks like the following code is the source of that error (https://github.com/redis/node-redis/blob/master/packages/client/lib/client/index.ts#L177-L184):
If I'm following correctly, it looks like the redis 4.x library only supports using a numeric value for the path prefix. Based on https://github.com/hubotio/hubot-redis-brain/commit/c1719baf78cfb5aa98c99dcb201d2dddc76cc516, it seems like non-numeric prefixes were intended to be supported by hubot-redis-brain, so I think something isn't quite right.