Hi, I'm trying to use Prefect to trigger an Airbyt...
# ask-community-for-troubleshooting
s
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}
Is this some HTTPS thing? Any help is much appreciated. Thanks.
u
Hey Steven, could you give me a link to Perfect?
s
It's running locally - sorry.
Looking at it a little more, if I take the link (http://localhost:8000/api/v1/health/) and try to open it in a new browser window (private browser), then I have to log in. Currently I'm using the standard username and password set as per the install notes (see here).
I guess that I could disable the authentication requirements, but that seems a little odd.
And if I look in the notes here or the code here there is no real way that I can see to pass credentials. Hmm!
👍 1
n
I know local authentication was implemented recently, so my guess is that this doc/process has not been updated yet. Let me inquire with the team, and while I do that - could you create a GitHub issue for this?
s
Hi, I've added Issue 19414. Hopefully this help. Let me know if you need more info. Thanks. By the way, I've had a colleague set up fresh from the start and he's hit the same issue - maybe it's a local development thing, but we're not sure how to move past it.
u
Thanks! I haven't heard back yet, but will update here when I do. Might be a local development thing - I'm not super familiar with Perfect, but will look into this.
s
Thank you.
I've managed to resolve the issue by removing the username and password from Airbyte, and my colleague seems to have got round that issue somehow by directly addressing the airbyte server, but I couldn't replicate that in my set up. Removing the username and password doesn't feel very good though.
👍 1
This looks like it will fix the issue: https://pypi.org/project/prefect-airbyte/0.1.3/
n
Thanks for the update! I still haven't heard back on this, so don't have an update for you unfortunately! If you end up trying that package out, please let me know!
s
Yes. I tried it out and it worked perfectly. Brilliant.
u
Wonderful to hear!