Uploaded image for project: 'AMQ Streams'
  1. AMQ Streams
  2. ENTMQST-1789

Kafka Bridge: producer json payload does not accept string for key and value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.4.0.GA, 1.5.0.GA
    • Fix Version/s: None
    • Component/s: kafka-bridge
    • Labels:
      None

      Description

      • AMQ Streams 1.4.0 installed on OpenShift 4.3
      • Kafka cluster and Kafka Bridge installed
      • When sending the following message to a topic:
        curl -X POST $BRIDGE/topics/bridge-topic-1   -H 'content-type: application/vnd.kafka.json.v2+json'   -d '{"records":[{"key":"message-key","value": "message-value"}]}'
        

        The following error is returned:

        {
          "error_code": 400,
          "message": "Validation error on: body.records[0].value - $.records[0].value: string found, object expected"
        }
        

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            bernard.tison Bernard Tison
            Tester:
            Lukas Kral Lukas Kral
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: