Skip to content

Troubleshooting

Chang Jia Geng edited this page Feb 20, 2026 · 15 revisions

Current as of 20 Feb 2026

This page describes the common errors encountered and what to do.

No 'usage_metadata'

⁉️ Unexpected message: 'State' object has no attribute 'usage_metadata'

  • Issue: unknown, but happens to new accounts
  • Solution: "Erase memory" and reload page

Context length exceeded

⁉️ Unexpected message: Error code: 400 - {'error': {'message':'Input tokens exceed the configured limit of 272000 tokens. Your messages resulted in ... tokens. Please reduce the length of the messages.', 'type':'invalid_request_error','param':'messages','code':'context_length_exceeded'}}

  • Solution: "Erase memory" and reload page.

No ToolMessage

⁉️ Unexpected message: Found AIMessages with tool_calls that do not have a corresponding ToolMessage. Here are the first few of those tool calls: [{'name':'...]

  • Issue: previous session was interrupted during a tool call
  • Solution: "Repair AI" and reload page

psycopg.errors

⁉️ Unexpected message: (psycopg.errors.AdminShutdown) terminating connection due to administrator command [SQL: SELECT ...] [parameters: {'table_name': ..., 'schema_name': ...}] (Background on this error at: https://sqlalche.me/e/20/e3q8)

  • No solution. Database was shut-down halfway. Need to contact administrator to restart database service.

Session expired

Session expired. Please log in again. Error 500: Internal Server Error

  • Issue: The token has expired after 2 hours of logging in.
  • Solution: Need to log out and log in to get a new token. If it still doesn't work, the app is down.

500

Error 500: Internal Server Error

  • The app is down. There is no solution but to contact admin.

Other errors

Initialization error: the connection is closed

  • Issue: app needs to reload. Contact admin

Clone this wiki locally