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

get_latest_schema() doesn't raise for log error for all the codes. It makes it difficult to debug

Open HarmeetSokhi opened this issue 6 years ago • 0 comments

Description

get_latest_schema() method in cached_schema_registry_client.py have the below code which makes it difficult to debug the actual error code

elif not (code >= 200 and code <= 299):
           return (None, None, None)

How to reproduce

Disconnect the schema Registry and try it will only give None .However if you want to see the actual error ,it needs to raise or at least log the error

HarmeetSokhi avatar Apr 16 '19 23:04 HarmeetSokhi