---
title: "query_failed: what it means and how to fix it · Hypamoon"
description: "HTTP 422. The read-only query from query_app_db (POST /api/v1/apps/{id}/query) reached the app's database but SQLite refused it, for example a table or..."
url: https://hypamoon.com/docs/errors/query_failed
---

**Start for free.** [Sign up](https://app.hypamoon.com/?mode=signup&utm_source=docs&utm_campaign=banner) without a card and connect your chat, or create a test key for the API. Going live with something real asks for a quick check of your company first.

[Errors](https://hypamoon.com/docs/errors)

# query\_failed

**Status**\
422

**Type**\
`https://hypamoon.com/docs/errors/query_failed`

The read-only query from `query_app_db` (`POST /api/v1/apps/{id}/query`) reached the app's database but SQLite refused it, for example a table or column that does not exist or a syntax error. Nothing changed: the query only reads. `get_app_schema` (`GET /api/v1/apps/{id}/schema`) shows the tables and columns; fix the query and send it again.

Hypamoon is the infrastructure your chat or agent builds on for a business. Hypamoon API, version 1.[hypamoon.com](https://hypamoon.com/)
