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

"Failed to discover artifact type from content." for /apis/ccompat/v7/schemas/ids/ID call #5713

Open
simonepm opened this issue Dec 12, 2024 · 1 comment

Comments

@simonepm
Copy link

simonepm commented Dec 12, 2024

On Apicurio Registry v3.6.0 we register proto artifacts in the format <topic_name>-value using v2 API using null as group id.

Correctly we can see the schema registered in v7 ccompat:

/apis/ccompat/v7/subjects/<topic_name>-value/versions/version

The endpoint returns a subject with a certain ID

But, when looking for the schema by ID:

/apis/ccompat/v7/schemas/ids/ID

We receive:

{
    "message": "Failed to discover artifact type from content.",
    "error_code": 0
}

This is the same error returned when using io.confluent.kafka.serializers.protobuf.KafkaProtobufDeserializer causing the failure of our proto deserializations.

Is there a way to make /apis/ccompat/v7/schemas/ids/ID endpoint responding? In Apicurio 2 registry image this call works correctly, seems just a regression in Apicurio 3 registry image.

io/confluent/kafka/schemaregistry/client/rest/RestService.java

image

@apicurio-bot
Copy link

apicurio-bot bot commented Dec 12, 2024

Thank you for reporting an issue!

Pinging @carlesarnal to respond or triage.

@simonepm simonepm changed the title Failed to discover artifact type from content. Apicurio v2 -> Ccompat v7 "Failed to discover artifact type from content." for /apis/ccompat/v7/schemas/ids/ID call Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant