Skip to content

[Bug]: API endpoints returning 502/503 errors and failing to persist settings (v0.20.0) #19

Description

@LeonGrim2024

Before submitting

  • I searched existing issues for the same problem.
  • I removed credentials and private household data from this report.
  • This is a bug in an advertised path, not a general support request.

Hauser version or commit

0.20

Installation path

Docker Compose from source

Environment

Ubuntu

Home Assistant version

last

Steps to reproduce

Describe the bug

I specifically opened an account on OpenAI because this feature looked great and I liked it the most — but unfortunately, it doesn't work at all...

After deploying ghcr.io/ralleur/hauser:v0.20.0 via Docker Compose with a valid household.json configuration, the frontend loads correctly, but multiple backend API endpoints consistently respond with 502 Bad Gateway or 503 Service Unavailable. Consequently, actions like saving API keys or utilizing AI modules fail entirely.

Endpoints affected:

/ambient-llm/v1/chat/completions (502 Bad Gateway)

/api/room-images/access/api-key (503 Service Unavailable)

/api/room-images/access (503 Service Unavailable)

Image

Expected behaviour

API requests to /ambient-llm/v1/chat/completions and /api/room-images/* should successfully process, persist configuration to the /data volume, and return 200 OK without gateway crashes.

Actual behaviour

Endpoints consistently return 502 Bad Gateway and 503 Service Unavailable. Saving API keys or updating settings fails. Docker container logs show no incoming request trace during frontend attempts.

Redacted logs, screenshots or recordings

- Version: v0.20.0 (Docker deployment)
- Console errors:
  * /ambient-llm/v1/chat/completions -> 502 Bad Gateway
  * /api/room-images/access -> 503 Service Unavailable
  * /api/room-images/access/api-key -> 503 Service Unavailable

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNeeds maintainer classification or scope decision

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions