confluent-kafka-python
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
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