Skip to content
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

WRONGPASS invalid username-password with docker compose #334

Open
ammarvoloder opened this issue Aug 3, 2022 · 2 comments
Open

WRONGPASS invalid username-password with docker compose #334

ammarvoloder opened this issue Aug 3, 2022 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@ammarvoloder
Copy link

As I have changed from https://github.com/skunight/nestjs-redis to your nestjs-client(because your package is a lot better maintained), my core service is not able to connect to redis and throws all the time this error:
image
Even though the redis config seems to be okay (e2e testing with a redis-testcontainer is working), the microservice is not starting.

My config:
image

I also tried to hardcode the URL, in the case that the envs are not the right one.

image

My docker-compose redis config:

image

Is there anything wrong in the config or am I missing something?

Thanks a lot in advance !

@ammarvoloder
Copy link
Author

It seems that this is some kind of URL parsing issue. Package node-redis had similar problems as it seems. @liaoliaots do you have anything so far?

@liaoliaots
Copy link
Owner

You can connect to redis through some desktop manager(RESP, etc...) with the URL to check if the URL is correct. If something goes wrong, please check your docker compose.

If the URL is right, please check your nestjs configuration and code, and test the url directly via node-redis or ioredis.

Also check out the url specification: https://www.iana.org/assignments/uri-schemes/prov/redis

@liaoliaots liaoliaots added the help wanted Extra attention is needed label Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants