Skip to content

Commit c2d5a93

Browse files
rnpridgeonRyan P
authored andcommitted
Fix get_compatibility response parsing in CachedSchemaRegistryClient
1 parent 37f6e49 commit c2d5a93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

confluent_kafka/avro/cached_schema_registry_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,14 +407,14 @@ def get_compatibility(self, subject=None):
407407
"""
408408
url = '/'.join([self.url, 'config'])
409409
if subject:
410-
url += '/' + subject
410+
url = '/'.join([url, subject])
411411

412412
result, code = self._send_request(url)
413413
is_successful_request = code >= 200 and code <= 299
414414
if not is_successful_request:
415415
raise ClientError('Unable to fetch compatibility level. Error code: %d' % code)
416416

417-
compatibility = result.get('compatibility', None)
417+
compatibility = result.get('compatibilityLevel', None)
418418
if compatibility not in VALID_LEVELS:
419419
if compatibility is None:
420420
error_msg_suffix = 'No compatibility was returned'

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy