SchemaRegistryClient fails to instantiate due to httpx changes
See original GitHub issueDescribe the bug
Failure to instantiate client:
File "/usr/local/lib/python3.7/site-packages/schema_registry/client/client.py", line 45, in SchemaRegistryClient
--
| pool_limits: httpx.PoolLimits = httpx._config.DEFAULT_POOL_LIMITS,
| AttributeError: module 'httpx._config' has no attribute 'DEFAULT_POOL_LIMITS'
It’s most likely caused by changes in httpx library (particular version is not pinned in schema registry client deps)
Explicit downgrade httpx to 0.13.3 resolves this issue.
To Reproduce Steps to reproduce the behavior:
Install python schema registry client with latest httpx lib and try to create client.
Expected behavior Client is created ok.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Kafka Schema Registry getting error Unexpected character ...
I am now able to post a message to kafka in Avro format after validating through schema registary. The mistake which I was...
Read more >Schema Registry Configuration Options
Comma-separated list of listeners that listen for API requests over either HTTP or HTTPS. If a listener uses HTTPS, the appropriate SSL configuration ......
Read more >Requests Compatibility Guide
Requests Compatibility Guide. HTTPX aims to be broadly compatible with the requests API, although there are a few design differences in places.
Read more >Spring Cloud Schema Registry
spring.cloud.schemaRegistryClient.endpoint. The location of the schema-server. When setting this, use a full URL, including protocol ( http or https ) ...
Read more >Kafka as target - Forums - IBM Support
Tried refresh for the subscription which failed with error Error ... Thanks for you inputs. ... at io.confluent.kafka.schemaregistry.client.rest.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, indeed version bump was enough. Sorry for the bother !
@mgorsk1 As Marcos points out, version 1.4.2 should fix your issue (i.e. https://github.com/marcosschroh/python-schema-registry-client/blob/master/schema_registry/client/client.py#L45 no longer references
httpx._config.DEFAULT_POOL_LIMITS
).@miandreu The full traceback of your error and the output of
python -mpip list | grep "python-schema-registry-client\|httpx"
might help narrow down where exactly you’re seeing this issue.