question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cp-kafka-rest gives me ERR_EMPTY_RESPONSE

See original GitHub issue

I 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:open
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
vlad0337187commented, Dec 26, 2017

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:

KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka2:9093
KAFKA_REST_LISTENERS: http://rest:8082

, …

And then shared that ports to host:

ports:
      - 8082:8082

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

0reactions
hectorgarzoncommented, Dec 26, 2017

No, sorry…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found