#188 — BUG: GET /dashboards - KeyError: ‘serving_llmchat_id’

Repo: Twill-AI/facade State: closed | Status: done Assignee: Unassigned

Created: 2024-11-13 · Updated: 2025-09-15

Description

Caused by https://twill-network.slack.com/archives/C07TPN6FCBX/p1731438024198409

STR:

  • Run GET /dashboards/{id}

Expected: no errors

Actual: 500, logs

2024-11-12 19:00:12.204|ERROR|Chidihf8ml|fastapi_utils:161|GET http://staging.twillai.com/api/v1/dashboards/40 Unhandled exception: 'serving_llmchat_id'
...
  File "/app/app/api/dashboards_router.py", line 342, in get_dashboard
    return DashboardWithContent.from_db_objects(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/app/api/dashboards_router.py", line 161, in from_db_objects
    PersistedWidget.from_db_dict(x, x["serving_llmchat_id"])
                                    ~^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'serving_llmchat_id'

2024-11-12 19:00:12.349|INFO|Chidihf8ml|fastapi_utils:253|FINISH G

## Notes

_Add implementation notes, blockers, and context here_

## Related

_Add wikilinks to related people, meetings, or other tickets_