question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SchemaRegistryClient fails to instantiate due to httpx changes

See original GitHub issue

Describe 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)

https://github.com/encode/httpx/commit/f67e925f72166ac89c4ff430540173b5910ec315#diff-11c528b34fa1b897a86107c0a46b252f

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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mgorsk1commented, Aug 13, 2020

Thanks, indeed version bump was enough. Sorry for the bother !

0reactions
com4commented, Aug 12, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found