cp-kafka-rest gives me ERR_EMPTY_RESPONSE
See original GitHub issueI have kafka and zoopeeker running on a docker network called bam2.
When I run: docker run -d --net=bam2 --name=kafka-rest -e ACCESS_CONTROL_ALLOW_ORIGIN_DEFAULT="*" -e KAFKA_REST_ZOOKEEPER_CONNECT=zookeeper1:2181 -e KAFKA_REST_LISTENERS=http://localhost:8082 -p:8082:8082 confluentinc/cp-kafka-rest:3.0.1
and access to localhost:8082/topics it gives me ERR_EMPTY_RESPONSE.
I can’t make docker image for kafka-rest to work.
If I run ./bin/kafka-rest-start ./etc/kafka-rest/kafka-rest.properties
from confluent 3.3.0 REST API for Kafka works fine.
What am I doing wrong?
Thanks
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
How To Fix Err_empty_response: Try These Simple Tips
The web page fails to load, and an error message with the code ERR EMPTY RESPONSE appears. If you've been using Google Chrome...
Read more >Why do I get ERR_EMPTY_RESPONSE and how do I fix it?
Answer. The err_empty_response (err empty response) message can occur when using the Chrome browser and you are trying access a website. It ...
Read more >How To Fix the "ERR_EMPTY_RESPONSE" Error (5 Potential ...
In this post, we'll explain what ERR_EMPTY_RESPONSE means and look at some common causes of the issue. Then, we'll walk you through five ......
Read more >How to Fix 'ERR EMPTY RESPONSE' in Chrome? - Auslogics
Right-click Command Prompt, then select Run as Administrator. If prompted to give permission to the app, click Yes. Once Command Prompt is up, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
BTW, seems, I solved it. Made all network bridge. In Kafka’s, REST’s, … advertised listeners environment variables I specified not localhost, but name of service. For example:
, …
And then shared that ports to host:
After if one service calls another - they use service’s names as host names, if I need to call them from outside of docker - I use ‘localhost:9093’, etc.
Working docker-compose.yml: docker-compose.txt
No, sorry…