i wonder how to properly do a http request to a docker container. My current libraries, which might matter are
Reqwest tells me, that URLs such as are not valid.
In fact here is the error, which describes the situation pretty well.
app_1 | 2021-05-27 15:59:38,908 WARN [user_service::repository] BaseURL: "http://auth-app:8000/"
app_1 | 2021-05-27 15:59:38,908 WARN [user_service::repository] Endpoint: "api/v1/login"
app_1 | 2021-05-27 15:59:38,908 TRACE [mio::poll] deregistering handle with poller
app_1 | thread 'tokio-runtime-worker' panicked at 'called
Errvalue: RelativeUrlWithoutBase', src/repository.rs:52:72
app_1 | note: run with
RUST_BACKTRACE=1environment variable to display a backtrace
What is a good way to communicate between docker container in e.g. a docker swam environment. Besides using message broker such as rabbitmq.