confluent-kafka-python icon indicating copy to clipboard operation
confluent-kafka-python copied to clipboard

Unrecognized field: schemaType (HTTP status code 422, SR code 422)

Open ffissore opened this issue 11 months ago • 2 comments

Description

We run schema registry 5.1.4 (confluentinc/cp-schema-registry:5.1.4), which returns 422 when registering schemas using the latest confluent-kafka version, 2.6.2. The culprit is PR #1852, specifically these lines: they are hard to catch because they buried under 12000 changed lines

How to reproduce

Run cp-{kafka,zookeeper,schema-registry}-5.1.4 and try registering a schema.

Checklist

Please provide the following information:

  • [X] confluent-kafka-python and librdkafka version (confluent_kafka.version() and confluent_kafka.libversion()): ('2.6.2', 33948160), ('2.6.1', 33948159)
  • [X] Apache Kafka broker version: 2.1.1 (cp-kafka:5.1.4)
  • [X] Client configuration: {...}: unrelated
  • [X] Operating system: unrelated
  • [X] Provide client logs (with 'debug': '..' as necessary): schema registry client doesn't log, however, this is the body of the request sent by it {"schema": "{\\"type\\": \\"record\\", \\"name\\": \\"HelloWorldValue\\", \\"fields\\": [{\\"type\\": \\"string\\", \\"name\\": \\"hello\\"}]}", "schemaType": "AVRO", "references": []}
  • [X] Provide broker log excerpts: unrelated
  • [X] Critical issue: no but it prevents us from upgrading the library

ffissore avatar Dec 18 '24 07:12 ffissore

@ffissore , are you able to upgrade to CP 5.5+?

rayokota avatar Dec 18 '24 20:12 rayokota

I'm not. We know we are lagging behind but the migration/upgrade has always been postponed and I have no idea when it will be prioritised.

ffissore avatar Dec 18 '24 22:12 ffissore

Marking as wontfix as the the service needs to be upgraded to use later versions of schema registry.

MSeal avatar Jul 24 '25 23:07 MSeal