karrioapi / karrio-dashboard

The Open Source Shipping dashboard for karrio
https://karrio.io
Apache License 2.0
75 stars 28 forks source link

Tracking / Label creation does not work: Network Error #230

Closed MarcoWel closed 1 year ago

MarcoWel commented 1 year ago

Describe the bug Tracking / Label creation does not work. Dashboard tries to call invalid API URLs.

To Reproduce Steps to reproduce the behavior:

  1. Set up a fresh karrio instance:
    git clone --depth 1 https://github.com/karrioapi/karrio
    cd karrio/docker
    sudo docker-compose up
  2. Log into the dashboard.
  3. Setup carrier.
  4. Try tracking or creating label.
  5. "Network error" is shown, or browser network inspector shows API error.

Desktop (please complete the following information):

Additional context

docker-compose.yml > dashboard > environment: KARRIO_URL: http://api:${KARRIO_HTTP_PORT:-5002} (default)

image

docker-compose.yml > dashboard > environment: KARRIO_URL: ${KARRIO_PUBLIC_URL}

image