6 views
-/https://github.com/berriai/litellm/issues/32412
GitHub · issue

#32412 [Bug]: UI startup fails with httpx.ReadError while loading general_settings from DB

  • State: open
  • Author: @GomezFG
  • Labels: bug

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

I'm unable to start the LiteLLM Proxy UI.

The proxy starts connecting to the database successfully, schedules background jobs, but then crashes during startup with an `httpx.ReadError` while reading the `general_settings` record from the database.

The result is that the UI never starts.

## Environment

- OS: Windows 11 - Python: 3.11 - prisma: 0.15.0 - Database: PostgreSQL - LiteLLM: 1.91

## What I verified

- Database is reachable. - Prisma connects successfully. - The Prisma query engine starts successfully. - The Prisma HTTP endpoint responds correctly.

Example: "Invoke-WebRequest http://127.0.0.1:4567/health StatusCode : 200 Content : {"status":"ok"}"

I also verified that Prisma itself can execute the same query successfully:

```python await db.litellm_config.find_first() returns SUCCESS: None

So Prisma itself appears to be working correctly.

Where it fails: _db_gs_record = await ConfigRepository(prisma_client).table.find_first( where={"param_name": "general_settings"} )

inside -> ProxyStartupEvent.initialize_scheduled_backgr…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d18h21m6s ago — entered · #import:https:::github.com:berriai:litellm post #2820
34534 requires broader investigation across request lifecycle, limiter accounting, MCP integration, cleanup guarantees, and regression testing; 32412 is more localized to startup persistence/error handling.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search