-
Notifications
You must be signed in to change notification settings - Fork 269
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
REST API returning 406 error when "accept: application/json" header included in request #1007
Comments
Thanks for the report. @carlesarnal I assume this is an easy fix, but could you dig into it and see what you can find? |
Hi @EricWittmann we're not supporting all the accept headers that confluent does, this has been fixed here. |
Fixed in #1017 |
Many thanks - is the fix in the apicurio/apicurio-registry-kafka:1.3.2.Final Docker image? I've just tested that image together with AKHQ but I'm still getting the same error in AKHQ shown in the image above. Unfortunately I'm not a Java developer so I haven't had any success logging the exact requests and responses that are triggering the error. Is there any way to configure Apicurio registry to log full requests and responses? I should then be able to provide more information re exactly what is going wrong. |
No sorry, the fix was made on Also please note that the -kafka variant of registry has been deprecated for some time (in favor of the -streams variant) and has been removed in I believe configuration options are mostly the same. More info here: https://github.com/Apicurio/apicurio-registry#streams |
I am running the Apicurio schema registry in Docker with the following configuration:
When I make a GET request without an "Accept" request header, or with "accept: application/vnd.schemaregistry.v1+json", everything works fine:
However, when I use "accept: application/json", which should also work, I get a 406 error:
This same issue means that I cannot use AKHQ as a GUI for the Apicurio schema registry - see this GitHub issue for some background. I think the issue lies with Apicurio rather than AKHQ because AKHQ works just fine when using the Confluent schema registry.
Hopefully this should be a relatively trivial issue to fix, but it would certainly be nice if the Apicurio schema registry accepted all the same content types as the Confluent implementation (see here) and also worked nicely with AKHQ.
Update:
I've attached a screenshot of the error in AKHQ below:
The text was updated successfully, but these errors were encountered: