It currently isn't possible to use a valkey(/redis) server without a password, as if the password is not provided it always defaults to an empty string which causes the following error:
Failed to save cache file
Failed to set cache: -ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?
|
username: Deno.env.get("REDIS_USERNAME") || "", |
|
password: Deno.env.get("REDIS_PASSWORD") || "", |
My current workaround has been to just comment out these lines.
A usecase for allowing connecting to valkey/redis without a password is when using docker compose, the valkey server is never exposed to the internet so it's fine to not give it a password.
It currently isn't possible to use a valkey(/redis) server without a password, as if the password is not provided it always defaults to an empty string which causes the following error:
github-profile-trophy/src/config/cache.ts
Lines 26 to 27 in c1d8c00
My current workaround has been to just comment out these lines.
A usecase for allowing connecting to valkey/redis without a password is when using docker compose, the valkey server is never exposed to the internet so it's fine to not give it a password.