krakend / krakend-pubsub

a pubsub backend for the KrakenD framework
https://www.krakend.io
Apache License 2.0
10 stars 17 forks source link

kafka: Failed to deliver 1 messages #21

Closed eluizbr closed 1 year ago

eluizbr commented 1 year ago

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 commented 1 year ago

duplicates https://github.com/krakendio/krakend-ce/issues/733