Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when executing stream_details = s.streams.get_stream_properties(req) #63

Open
barakavra opened this issue Mar 3, 2024 · 0 comments
Open

Comments

@barakavra
Copy link

barakavra commented Mar 3, 2024

line 697, in unmarshal_json
raise AttributeError(
AttributeError: unable to unmarshal

reproduce -
install latest airbyte helm.
setup GITHUB and Snowflake connection

run this code -

from airbyte import Airbyte
from airbyte.connections import shared
from airbyte.models import errors, operations, shared
from airbyte.models.operations import ListConnectionsRequest

     
import airbyte
from airbyte.models import shared

s = Airbyte(server_url="http://127.0.0.1:8006/v1",
                security=shared.Security(
        basic_auth=shared.SchemeBasicAuth(
            password="<YOUR_PASSWORD_HERE>",
            username="<YOUR_USERNAME_HERE>",
        ),
    ),)
r = s.connections.list_connections(operations.ListConnectionsRequest())
for connection_id in r.raw_response.json()['data']:
    print(connection_id['connectionId'])
    cr = s.connections.get_connection(operations.GetConnectionRequest(connection_id['connectionId']))
    req = operations.GetStreamPropertiesRequest(
    destination_id=cr.raw_response.json()['destinationId'],
    source_id=cr.raw_response.json()['sourceId'],
    ignore_cache=True,
    )

    stream_details = s.streams.get_stream_properties(req)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant