-
-
Notifications
You must be signed in to change notification settings - Fork 661
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
40408 error on /config/subject instead of 40401 cause AKHQ to break #763
Comments
twobeeb
changed the title
404
40408 error on /config/subject instead of 40401 cause AKHQ to break
Jul 20, 2021
I suggest replacing the above code with : public Schema.Config getConfig(String clusterId, String subject) throws IOException, RestClientException {
try {
return new Schema.Config(this.kafkaModule
.getRegistryRestClient(clusterId)
.getConfig(subject)
);
} catch (RestClientException exception) {
// before
// if (exception.getErrorCode() != ERROR_NOT_FOUND) {
if (exception.getStatus() != 404) {
throw exception;
}
return this.getDefaultConfig(clusterId);
}
} What's your opinion ? |
chgl
pushed a commit
to chgl/akhq
that referenced
this issue
Aug 9, 2021
…ema Registry (tchiotludo#765) close tchiotludo#763 Co-authored-by: Julien Chanaud <[email protected]>
tchiotludo
pushed a commit
that referenced
this issue
Oct 24, 2021
…ema Registry (#765) close #763 Co-authored-by: Julien Chanaud <[email protected]>
After upgrading Schema Registry we also observe this problem. |
Will do, seems to have a lot of people waiting for a new release 😄 |
Release happen 😄 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running AKHQ against recent version of Schema Registry, the schema registry is throwing different errors codes than previous versions when calling /config/subject (which is allowed to return 404).
Because the error is not ignored, the SchemaRegistry page completely fails on AKHQ :
This is the failing part, which requires specifically 40401 :
https://github.com/tchiotludo/akhq/blob/dev/src/main/java/org/akhq/repositories/SchemaRegistryRepository.java#L222-L235
Change on Confluent side :
confluentinc/schema-registry#1920
The text was updated successfully, but these errors were encountered: