josix commented on issue #37449:
URL: https://github.com/apache/airflow/issues/37449#issuecomment-2041992100
I did some investigation, the root cause of this issue is that the url
format is invalid for `aiohttp` so it would raise the following error. Note
that I used the local airbyte to verify it, which the host of airbyte is
`host.docker.internal`. However, I think this error is identical to the use
case that sets the host to `airbyte-proxy` mentioned in this issue.
```
Traceback (most recent call last):
File "/opt/***/***/jobs/triggerer_job_runner.py", line 531, in
cleanup_finished_triggers
result = details["task"].result()
File "/opt/***/***/jobs/triggerer_job_runner.py", line 603, in run_trigger
async for event in trigger.run():
File "/opt/***/***/providers/airbyte/triggers/airbyte.py", line 68, in run
while await self.is_still_running(hook):
File "/opt/***/***/providers/airbyte/triggers/airbyte.py", line 111, in
is_still_running
job_run_status = await hook.get_job_status(self.job_id)
File "/opt/***/***/providers/airbyte/hooks/airbyte.py", line 105, in
get_job_status
response = await self.get_job_details(job_id=job_id)
File "/opt/***/***/providers/airbyte/hooks/airbyte.py", line 90, in
get_job_details
async with session.post(url=url, data=json.dumps({"id": job_id})) as
response:
File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line
1194, in __aenter__
self._resp = await self._coro
File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 545,
in _request
req = self._request_class(
File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py",
line 326, in __init__
self.update_host(url)
File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py",
line 400, in update_host
raise InvalidURL(url)
aiohttp.client_exceptions.InvalidURL: host.docker.internal/api/v1/jobs/get
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]