-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Crashes upon failing to connect to Redis even though Redis isn't configured #1516
Comments
I also have received an error, and once I reverted back the redis change #1390, I was able to run the project without any errors (see screenshot beow) |
I also receive this error, and if I also revert back the redis change mentioned earlier, then it runs fine again. |
can you explain how you discarded the redis change? //edit: ok i fix it for me whit install this one https://github.com/microsoftarchive/redis/releases/latest //edit2: Maybe next time i must read better :) But @jef and @BaileyMillerSSI you have forgot to Put example in the dotenv-example |
The issue is due to the Redis client being initialized within the module scope, while it should be initialized separately and only on-demand. You can hotfix this by changing the first few lines of the
(where Edit: I've added a check to terminate immediately if the Redis client URL is not set or empty, again this can probably be done better, I've just pasted a quick fix! |
For Linux users: Just install redis via your package manager. That did the trick for me! |
Damn.. I don't know why this was going through. I will fix. Thanks. |
I was having the same problem on windows but just updated code and now it's working |
Commit #1390 seems to have added some functionality that expects a Redis server to be available by default.
The text was updated successfully, but these errors were encountered: