https://prefect.io logo
Title
s

Steven Wilber

11/14/2022, 10:10 AM
Hi, I'm trying to use Prefect to trigger an Airbyte flow, but it fails at the Airbyte health check. I can see in the logs the following:
httpx.HTTPStatusError: Client error '401 Unauthorized' for url '<http://localhost:8000/api/v1/health/>'
But I can check that url and it works fine and returns:
{"available":true}
Any help is much appreciated. Thanks.
1
n

Nate

11/14/2022, 3:24 PM
Hi @Steven Wilber!
But I can check that url and it works fine and returns:
{"available":true}
when you're able to do this, how are you doing it? I'm wondering if the correct hostname is being passed to
trigger_sync
s

Steven Wilber

11/14/2022, 3:57 PM
I simply take the URL from the logs and paste it into my browser. You can see it at the start of this thread.
n

Nate

11/14/2022, 4:05 PM
Are you on one of the newest airbyte versions that uses nginx for auth?
I was able to reproduce this by using the most recent version of airbyte, which does use nginx for auth. As soon as possible, I'll have to make a new release for
prefect-airbyte
that includes the user auth in the httpx client when we create it
🙌 2
update here: this PR will add support for OSS nginx auth, it'll be merged sometime this week and there'll be a corresponding release of the PyPI package
s

Steven Wilber

11/17/2022, 11:41 AM
That's fantastic. Thank you. Can't wait.
Really - that's such a quick turn around - I'm really impressed and thankful.
:party-parrot: 1
n

Nate

11/17/2022, 3:44 PM
Hey @Steven Wilber! We got
prefect-airbyte==0.1.3
released yesterday (docs) which includes the addition of an
AirbyteServer
block that can handle airbyte's new nginx auth setup let us know if anything's not as expected!
s

Steven Wilber

11/17/2022, 3:48 PM
I've just updated and got it all running end to end. Brilliant - thank you so much. Amazing.
🔥 1
And also, it's nice to use a prefect block for this as well.
n

Nate

11/17/2022, 3:50 PM
sure thing - glad its working out for you 🙂