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

Can't produce message using UI #4068

Closed
4 tasks done
barmaxence opened this issue Jul 28, 2023 · 2 comments
Closed
4 tasks done

Can't produce message using UI #4068

barmaxence opened this issue Jul 28, 2023 · 2 comments
Labels
scope/frontend status/duplicate This issue or pull request already exists type/bug Something isn't working

Comments

@barmaxence
Copy link

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running master-labeled docker image and the issue still persists there
  • I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

When I try to produce a JSON message through Kafka UI, using Schema Registry, I get an error message

Content no schema with key or ref "http://json-schema.org/draft-04/schema#"

Expected behavior

Can produce message

Your installation details

Kafka stack :

  • confluentinc/cp-kafka
  • confluentinc/cp-schema-registry
  • provectuslab/kafka-ui (master)
version: '2'
services:

  kafka0:
    image: confluentinc/cp-kafka:latest
    container_name: kafka0
    hostname: kafka0
    ports:
      - '9092:9092'
    environment:
      KAFKA_NODE_ID: 1
      KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: 'CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT'
      KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://kafka0:29092,PLAINTEXT_HOST://localhost:9092'
      KAFKA_PROCESS_ROLES: 'broker,controller'
      KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
      KAFKA_CONTROLLER_QUORUM_VOTERS: '1@kafka0:29093'
      KAFKA_LISTENERS: 'PLAINTEXT://kafka0:29092,CONTROLLER://kafka0:29093,PLAINTEXT_HOST://0.0.0.0:9092'
      KAFKA_INTER_BROKER_LISTENER_NAME: 'PLAINTEXT'
      KAFKA_CONTROLLER_LISTENER_NAMES: 'CONTROLLER'
      KAFKA_LOG_DIRS: '/tmp/kraft-combined-logs'
      CLUSTER_ID: 'MkU3OEVBNTcwNTJENDM2Qk'

  schemaregistry0:
    image: confluentinc/cp-schema-registry:latest
    container_name: schemaregistry0
    ports:
      - '8085:8085'
    depends_on:
      - kafka0
    environment:
      SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: 'PLAINTEXT://kafka0:29092'
      SCHEMA_REGISTRY_KAFKASTORE_SECURITY_PROTOCOL: 'PLAINTEXT'
      SCHEMA_REGISTRY_HOST_NAME: 'schemaregistry0'
      SCHEMA_REGISTRY_LISTENERS: 'http://schemaregistry0:8085'
      SCHEMA_REGISTRY_SCHEMA_REGISTRY_INTER_INSTANCE_PROTOCOL: 'http'
      SCHEMA_REGISTRY_LOG4J_ROOT_LOGLEVEL: 'INFO'
      SCHEMA_REGISTRY_KAFKASTORE_TOPIC: '_schemas'

  kafka-ui:
    image: provectuslabs/kafka-ui:master
    container_name: kafka-ui
    ports:
      - '8080:8080'
    depends_on:
      - kafka0
      - schemaregistry0
    environment:
      KAFKA_CLUSTERS_0_NAME: 'local'
      KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: 'kafka0:29092'
      KAFKA_CLUSTERS_0_SCHEMAREGISTRY: 'http://schemaregistry0:8085'
      DYNAMIC_CONFIG_ENABLED: 'true'

.NET producer and consumer

<PackageReference Include="Confluent.Kafka" Version="2.2.0" />
<PackageReference Include="Confluent.SchemaRegistry" Version="2.2.0" />
<PackageReference Include="Confluent.SchemaRegistry.Serdes.Json" Version="2.2.0" />
using var producer = new ProducerBuilder<string, TValue>(producerConfig)
            .SetKeySerializer(Serializers.Utf8) // same issue with or without this line
            .SetValueSerializer(new JsonSerializer<TValue>(schemaRegistry))
            .Build();

Steps to reproduce

  • Produce a message on topic X, with the configuration above
  • Producer auto create subject X-value in schema registry
  • Message is produced
  • On Kafka UI, create a message on topic 'X'

Screenshots

Capture d’écran 2023-07-28 à 12 12 48 Capture d’écran 2023-07-28 à 12 15 42 Capture d’écran 2023-07-28 à 12 16 17

Logs

No response

Additional context

To sum up, no problem to produce/consume messages with .NET Kafka package, just an issue to create a message with Kafka UI.

Thx for your help

@barmaxence barmaxence added status/triage Issues pending maintainers triage type/bug Something isn't working labels Jul 28, 2023
@github-actions
Copy link

Hello there barmaxence! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀

@Haarolean
Copy link
Contributor

Hi, it's a duplicate of #2354. Please follow the original issue.

@Haarolean Haarolean closed this as not planned Won't fix, can't repro, duplicate, stale Jul 28, 2023
@Haarolean Haarolean added status/duplicate This issue or pull request already exists scope/frontend and removed status/triage Issues pending maintainers triage labels Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope/frontend status/duplicate This issue or pull request already exists type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants