apicurio-registry icon indicating copy to clipboard operation
apicurio-registry copied to clipboard

When using apicurio with mongodb-kafka-connector, I get RESTEASY003210 error

Open alizard0 opened this issue 2 years ago • 1 comments

Hello,

I tried to set apicurio (v1.3.1) as the schema registry on my kafka-connect that is using mongodb-kafka-connector v1.7.0 to convert events to AVRO.

value.converter: io.confluent.connect.avro.AvroConverter
value.converter.schema.registry.url: http://my-apicurio-service-registry/api
key.converter: io.confluent.connect.avro.AvroConverter
key.converter.schema.registry.url: http://my-apicurio-service-registry/api

When I apply the changes, the KafkaConnectors throws the following exception:

Caused by: org.apache.kafka.common.config.ConfigException: Failed to access Avro data from topic my-topic-name : RESTEASY003210: Could not find resource for full path: http://my-apicurio-service-registry/api/subjects/my-topic-name/versions?normalize=false; error code: 404

I was checking the apicurio REST API and could not find any /api/subjects, therefore my question is, do apicurio supports this?

alizard0 avatar Oct 18 '22 10:10 alizard0

Please make sure that the apicurio dependencies in your pom file matches the version of apicurio registry installed

junaidaj86 avatar Oct 19 '22 02:10 junaidaj86

Hi, Registry supports Confluent-compatible API, but you have to use this base path: http://my-apicurio-service-registry/apis/ccompat/v6. Try to change the URL configuration to that path.

Edit: Sorry I missed that you are using 1.x version, then the base URL should be http://my-apicurio-service-registry/api/ccompat

jsenko avatar Oct 26 '22 11:10 jsenko

I would recommend to update to Registry 2.x if you can, it also supports Confluent-compatible API and contains a lot of new features and bug fixes.

jsenko avatar Oct 26 '22 11:10 jsenko

Closing this as stale but also raised against a very old version. Please upgrade to a more recent version and try again. Re-open this if you still encounter this problem! :)

EricWittmann avatar Nov 14 '22 17:11 EricWittmann