You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just hit this myself.
I'm using Airbyte OSS version 0.50.40 and airbyte-api versions 0.44.2 0.44.3, and it looks like the get_stream_properties API endpoint is returning a list of StreamProperties instead of the StreamPropertiesResponse expected by the airbyte-api library.
I got the same error as you guys and fixed the issue in the airbyte/utils/utils.py by modifying the unmarshal_json function to accept a list and it worked
def unmarshal_json(data, typ, decoder=None):
unmarshal = make_dataclass('Unmarshal', [('res', List[typ] if isinstance(json.loads(data), list) else typ)],
bases=(DataClassJsonMixin,))
json_dict = json.loads(data)
try:
out = unmarshal.from_dict({"res": json_dict})
except AttributeError as attr_err:
raise AttributeError(
f'unable to unmarshal {data} as {typ} - {attr_err}') from attr_err
return out.res if decoder is None else decoder(out.res)
Making the following request
raises
while running
successfully returns the same
<response>
The text was updated successfully, but these errors were encountered: