Skip to content

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

Open
@HarmeetSokhi

Description

@HarmeetSokhi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    code:pythonIssues that are specific to Python or versions of Python independent of library logiccomponent:schema-registryAny schema registry related isues rather than kafka isolated onesenhancementRequesting a feature changeinvestigate furtherIt's unclear what the issue is at this time but there is enough interest to look into itpriority:highMaintainer triage tag for indicating high impact or criticality issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions