geo-stream-kafka icon indicating copy to clipboard operation
geo-stream-kafka copied to clipboard

Unable to bootstrap from [('localhost', 9092, <AddressFamily.AF_UNSPEC: 0>)] connect kafka broker error

Open Cooler-cpu opened this issue 3 years ago • 0 comments

After running the services through docker ubuntu, I configured the variables for kafka as you wrote localhost:9092. My kafka is accessible from the client, I can connect to it via the client gui. But the service doesn't connect to it, I always get the same error. kafka.errors.KafkaConnectionError: KafkaConnectionError: Unable to bootstrap from [('localhost', 9092, <AddressFamily.AF_UNSPEC: 0>)]

Please help, what could be the problem, have you encountered it?

producer_1 | File "/usr/local/lib/python3.7/site-packages/starlette/routing.py", line 566, in aenter producer_1 | await self._router.startup() producer_1 | file "/usr/local/lib/python3.7/site-packages/starlette/routing.py", line 648, in startup producer_1 | await handler() producer_1 | file "./app/main.py", line 22, in startup_event producer_1 | await aioproducer.start() producer_1 | file "/usr/local/lib/python3.7/site-packages/aiokafka/producer/producer.py", line 307, in start producer_1 | await self.client.bootstrap() producer_1 | file "/usr/local/lib/python3.7/site-packages/aiokafka/client.py", line 252, in bootstrap producer_1 | f'Unable to bootstrap from {self.hosts}') producer_1 | kafka.errors.KafkaConnectionError: KafkaConnectionError: Unable to bootstrap from [('localhost', 9092, <AddressFamily.AF_UNSPEC: 0>)]

Cooler-cpu avatar Apr 24 '23 17:04 Cooler-cpu