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

kafka: Failed to deliver 1 messages #733

Closed
eluizbr opened this issue May 16, 2023 · 5 comments
Closed

kafka: Failed to deliver 1 messages #733

eluizbr opened this issue May 16, 2023 · 5 comments

Comments

@eluizbr
Copy link

eluizbr commented May 16, 2023

I'm having the following problem when I try to publish to a topic in Kafka.
For other API's Kafka works normally. The problem only happens with Krakend. Any idea what it could be?

krakend.json:

{
  "$schema": "https://www.krakend.io/schema/v3.json",
  "version": 3,
  "name": "API Gateway",
  "extra_config": {
    "telemetry/logging": {
      "level": "DEBUG",
      "prefix": "[KRAKEND]",
      "syslog": false,
      "stdout": false
    }
  },
  "timeout": "3000ms",
  "cache_ttl": "300s",
  "output_encoding": "json",
  "port": 8080,
  "endpoints": [
    {
      "endpoint": "/kafka",
      "method": "POST",
      "output_encoding": "no-op",
      "concurrent_calls": 1,
      "backend": [
        {
          "host": ["kafka://"],
          "disable_host_sanitize": true,
          "extra_config": {
            "backend/pubsub/publisher": {
              "topic_url": "mytopic"
            }
          }
        }
      ]
    }
  ]
}
@kpacha
Copy link
Member

kpacha commented May 16, 2023

Is the KAFKA_BROKERS envar properly set? check the example from the documentation: https://www.krakend.io/docs/backends/pubsub/#kafka

@eluizbr
Copy link
Author

eluizbr commented May 16, 2023

Hi..
Thanks for you quick response...
Yes, ii use....

export KAFKA_BROKERS=172.16.4.151:9092

@github-actions
Copy link

This issue is marked as stale because it has been open over 90 days with no activity. Remove the stale label or comment or this will be closed in 15 days.

@github-actions github-actions bot added the stale label Sep 20, 2023
@github-actions
Copy link

github-actions bot commented Oct 5, 2023

This issue was closed because it has been marked as stalled for 15 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 5, 2023
Copy link

github-actions bot commented Jan 4, 2024

This issue was marked as resolved a long time ago and now has been automatically locked as there has not been any recent activity after it. You can still open a new issue and reference this link.

@github-actions github-actions bot added the locked label Jan 4, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants