Hi. I’m trying to use the dagster-airbyte integrat...
# replication-troubleshooting
b
Hi. I’m trying to use the dagster-airbyte integration and am getting this error: Request to Airbyte API failed: 401 Client Error: Unauthorized for url: http://localhost:8000/api/v1/connections/get This is the code that’s failing. Any help to resolve the error would be greatly appreciated:
my_airbyte_resource = airbyte_resource.configured(
{
"host": "localhost",
"port": "8000",
}
)
sync_foobar = airbyte_sync_op.configured({"connection_id": "8bb7ae88-350d-40f4-947c-dfbe682311af"}, name="sync_foobar")
✍️ 1
a
You may want to reach out in the dagster slack. Airbyte only added their proxy/authentication this week, so the dagster integration likely needs to be updated with additional config parameters to support it. Your best workaround for now is to install a prior version of airbyte that does not include this security enhancement.
b
Thanks much. That helps.
u
@[DEPRECATED] Marcos Marx turned this thread into Zendesk ticket 3020 to ensure timely resolution!
b
In case anyone else runs into this, you should be able to pass basic auth credentials to your Dagster Airbyte resource by doing the following:
Copy code
airbyte_instance = airbyte_resource.configured(
    {
        "host": "localhost",
        "port": "8000",
        "request_additional_params": {"auth": ("airbyte", "password")},
    },
)
🎉 2
e
Yep! We added HTTP Basic Auth in the latest release! Also, be sure to change that username and password in your .env file 😄