Lindsay S
01/24/2023, 9:30 PMfrom dagster_airbyte import airbyte_resource, load_assets_from_airbyte_instance
airbyte_instance = airbyte_resource.configured(
{
"host": "localhost",
"port": "8000",
# If using basic auth, include username and password:
"username": "airbyte",
"password": "password",
}
)
# Use the airbyte_instance resource we defined in Step 1
airbyte_assets = load_assets_from_airbyte_instance(airbyte_instance)
@repository
def my_repo():
return [airbyte_assets,]
ben
01/24/2023, 9:55 PMrepository.py
in Dagster at the same time
• The repository load is timing out / not loading at allLindsay S
01/24/2023, 9:55 PMben
01/24/2023, 9:56 PMLindsay S
01/24/2023, 9:56 PMben
01/24/2023, 10:02 PMLindsay S
01/24/2023, 10:05 PMben
01/24/2023, 10:09 PMLindsay S
01/24/2023, 10:51 PMdagster_code_runner | airbyte_assets = load_assets_from_airbyte_instance(airbyte_instance)
dagster_code_runner | 2023-01-24 22:43:04 +0000 - dagster - ERROR - system - Request to Airbyte API failed: HTTPConnectionPool(host='localhost', port=8000): Max retries exceeded with url: /api/v1/workspaces/list (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xffff7443d250>: Failed to establish a new connection: [Errno 111] Connection refused'))
dagster_code_runner | 2023-01-24 22:43:05 +0000 - dagster - ERROR - system - Request to Airbyte API failed: HTTPConnectionPool(host='localhost', port=8000): Max retries exceeded with url: /api/v1/workspaces/list (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xffff7449f8d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
dagster_code_runner | 2023-01-24 22:43:05 +0000 - dagster - ERROR - system - Request to Airbyte API failed: HTTPConnectionPool(host='localhost', port=8000): Max retries exceeded with url: /api/v1/workspaces/list (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xffff74454150>: Failed to establish a new connection: [Errno 111] Connection refused'))
dagster_code_runner | 2023-01-24 22:43:05 +0000 - dagster - ERROR - system - Request to Airbyte API failed: HTTPConnectionPool(host='localhost', port=8000): Max retries exceeded with url: /api/v1/workspaces/list (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xffff7445c250>: Failed to establish a new connection: [Errno 111] Connection refused'))
extra_hosts:
- "host.docker.internal:host-gateway"
to my docker-compose.yaml for the user_code container with no luck. i'll keep trying but wonder if there are any examples you could suggestben
01/24/2023, 11:54 PMhost.docker.internal
instead of localhost
)localhost
to host.docker.internal
fixed it, hopefully that works for you as wellLindsay S
01/25/2023, 12:04 AMben
01/25/2023, 12:30 AMLindsay S
01/25/2023, 3:21 AM