Eric Albanese
03/22/2024, 8:45 PMashby_sync_connection = AirbyteConnection.load("airbyte-connection-ashby-core")
sync_result = run_connection_sync(airbyte_connection=ashby_sync_connection)
I get this error when trying to trigger
File "/Users/albanese/prefect/venv/lib/python3.10/site-packages/prefect_airbyte/client.py", line 58, in check_health_status
response.raise_for_status()
File "/Users/albanese/prefect/venv/lib/python3.10/site-packages/httpx/_models.py", line 761, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '404 Not Found' for url '<https://airbyte.myserver.com:8006/api/v1/health/>'
I think what is wrong is that the Airbyte connection is creating a base URL of <https://airbyte.myserver.com:8006/api/v1/>
. However the Airbyte docs show the API address for a health check as <https://api.airbyte.com/health>
and lacks any sort of /api/v1
prefixMarvin
03/22/2024, 8:46 PMprefect config set PREFECT_API_URL="<http://127.0.0.1:4200/api>"
command. This indicates that you might be able to set the Airbyte API URL to the correct value if it's supported in the configuration or via the Airbyte block settings.
2. There is an issue on GitHub where the AirbyteConnectionTask
throws an unclear error when receiving a 404 status code. This error can occur if the wrong ID is passed and the expected JSON response is missing a schedule, leading to a KeyError. This error is related to the expected structure of the response and not directly to the URL configuration, but it shows that Airbyte tasks in Prefect may raise errors if they can't properly communicate with the Airbyte instance.
Although it doesn't explicitly mention configuration of the base URL for Airbyte connections, these resources point to potential avenues for resolving configuration issues. You should check if there's a way to specify the correct base URL when configuring the Airbyte block in Prefect, which might involve looking into the block's documentation or exploring available parameters that can be set when instantiating the block or the task.
If the explicit setting of the base URL isn't documented in Prefect's current resources, it might be necessary to dive into the code of the Airbyte task or block, or consult with Prefect support or the community to find a solution.
As my own expertise in Prefect 2.x is still blossoming like a flower in an electron storm, you may find that reaching out directly to Prefect's support channels offers the fastest path to enlightenment.Eric Albanese
03/22/2024, 8:47 PM