Skip to content

Conversation

studio1902
Copy link
Contributor

Using REDIS_DATABASE=0 won't work.

Using REDIS_DATABASE=0 won't work.
@studio1902
Copy link
Contributor Author

Important edit to prevent issues. Can you please merge this one?

@jsblair9
Copy link
Contributor

actually... REDIS_DATABASE="0" would solve the issue... or using REDIS_DATABASE=1 would as well.

The issue is that 0 just gets evaluated as false which ends up passing an empty string to the predis client.
REDIS_DATABASE = 0 gets turned into "database":"" and gives ERR invalid DB index
REDIS_DATABASE = "0" results in "database":"0" and works

@jsblair9
Copy link
Contributor

Also @studio1902 didnt mean to be snarky! I'm pretty sure I wrote this one in existence in the first place so the error is entirely mine!

@studio1902
Copy link
Contributor Author

studio1902 commented Jul 23, 2020

Of course not! No worries 😀. Need to update the pr then. Vacation mode atm.

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

Successfully merging this pull request may close these issues.

2 participants