redis / redis-py

Redis Python client
MIT License
12.41k stars 2.48k forks source link

{ "detail": "Error 11001 connecting to redis:6379. getaddrinfo failed." } #3175

Open tawheed78 opened 4 months ago

tawheed78 commented 4 months ago

Thanks for wanting to report an issue you've found in redis-py. Please delete this text and fill in the template below.
It is of course not always possible to reduce your code to a small test case, but it's highly appreciated to have as much data as possible. Thank you!

Version: redis 5.0.2

Platform: python 3.11 Fastapi

Description: I have developed a CRUD operation using FASTAPI MongoDb and Huey as Redis queue and composed all of it via docker compose and now all the containers are running fine. Although when i try to send put post or delete request i get an error in postman { "detail": "Error 11001 connecting to redis:6379. getaddrinfo failed." }

snarb commented 1 month ago

the same problem. I am not using docker - just plain python client

tawheed78 commented 1 month ago

Please check if your redis script is running in separate terminal and if both your code and redis are connected.