Airbyte API communication issue when running code under Docker

Summary

Python orchestration with Airbyte API works fine outside of Docker with localhost, but encounters a 404 error when running under Docker with docker.host.internal. Seeking help to identify the problem and solution.


Question

hey!
I run airbyte locally.
I have some python orchestration with airbyte API communication
all works fine when I run outside of docker with localhost
but when I run same code under docker switching to docker.host.internal does not help - I’m getting 404 error.
whats the problem and fix?
thanks



This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want
to access the original thread.

Join the conversation on Slack

["airbyte-api", "docker", "python-orchestration", "404-error"]

Does the orchestrator code run in Docker too?

<@U01MMSDJGC9> yep exactly

outside of Docker - fine
inside - 404

Did you add the container to the same network Airbyte is running?

<@U01MMSDJGC9> guess no since I run separately abctl local install and my docker-compose up

<@U01MMSDJGC9>
I even tried installing airbyte with host flag and try to manipulate hosts (like with extra hosts from compose) but no luck at all.
even worse since I got max retries error - no connection at all
frustrating

<@U01MMSDJGC9>
also tried same network for both containers
same problem