-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ReplyError: ERR invalid DB index #74
Comments
By setting the database to 0 in the url: |
This might be an bug in parsing urls with trailing slash. Quote from RedisToGo support:
|
Any idea what Version of Redis they're running at redistogo.com? |
It's a bug that getting a NaN db when the pathname is empty. Fixed in 1.5.1. Thanks for pointing it out. |
Trailing slashes have been known to cause issues with some hosted Redis providers. See redis/ioredis#74 (comment)
This still happens on Heroku using v4.16.3. Adding /0 to the end of the Redis URL makes it go away. |
When using ioredis in Heroku using RedisToGo add-on, I get this error:
Everything works fine on my local machine(OS X) and local redis. I'm testing this with free plan in RedisToGo.
I'm initializing ioredis(version 1.5.0) like this:
redis://redistogo:<secret>@<secret>.redistogo.com:<port>/
.redis://127.0.0.1:6379
Do you have ideas of how to fix this? Redis works apparently correctly but my logs fill up with those exceptions and in general I'd like to get this resolved.
The text was updated successfully, but these errors were encountered: