'REDIS (json and search modules) requirepass causing errors
When no password is set for redis, my webpage works fine, no errors in powershell, it adds keys just fine when i submit information from the website. As soon as i set a password, i start getting a ton of errors such as : SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data && URIError: URI malformed
Does it have something to do with how I'm setting up the .env.local? I use:
REDIS_URL = redis://192.168.1.157:6379 and it works fine, but when i set the password to "secret_password" and then do this: REDIS_URL = redis://default:[email protected]:6379 everything breaks. Am i not formatting it correctly? The password is correct since i can go into redis console and do AUTH.
As soon as i revert the REDIS_URL everything stars working again, so that is the only thing i can find. Additionally, the format of redis://username:password@host:port should work since i used it earlier with an official redis aws instance and it worked.
Any tips on what could be the problem and how to fix it would be appreciated. Thanks, Christian
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
