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

Cannot connect to Redis error #97

Open
AaronWChen opened this issue Jun 27, 2024 · 2 comments
Open

Cannot connect to Redis error #97

AaronWChen opened this issue Jun 27, 2024 · 2 comments

Comments

@AaronWChen
Copy link

Hello! Saw this template and figured I'd give it a try. Cloning and running instructions as is has 7 containers running, but I get this error:
consumer: Cannot connect to redis://redis_server_test:6379//: Error -2 connecting to redis_server_test:6379. Name or service not known

And a CONNECTION_REFUSED when I try to open the app in my browser.

I'm using WSL2 (Ubuntu) on Windows 10 and initially tried to apply the steps listed here because Docker and WSL2 can act a little weird before I thought to ask about the traceback above.

Using poetry with python 3.12.4 and fastapi 0.111.0 and that's all.

@jonra1993
Copy link
Owner

jonra1993 commented Aug 2, 2024

Hello @AaronWChen I am sorry for the late reply. Do you still have this error? The correct URL of redis should be redis_server not redis_server_test

image image

@AaronWChen
Copy link
Author

Thanks for checking in!

I couldn't find an instance of redis_server_test in my code, so I'm not sure what I can change.

To be honest, I realized this template has a lot of stuff in it and I decided to simplify and piece together things to learn how they all fit together. I'm hoping it'll help me understand how to better set up some of the services in the template.

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

No branches or pull requests

2 participants