invalid_query
- HTTP status
- 422 Unprocessable Content
- Returned by
- Filters, saved views and segments
What it means
The filter sent to /v1/query/{entity} could not be understood. The message says what is wrong.
Typical causes
- An unknown field or operator, a value of the wrong type, or a syntax error in the text query.
How to fix it
- Check field names with
GET /v1/query/{entity}/fields.
Messages
English text, as sent with Accept-Language: en. With ru or uz the API sends the translation.
- A regex must have 1 to 200 characters.
RU: Регулярное выражение должно содержать от 1 до 200 символов.
UZ: Regex 1 tadan 200 tagacha belgidan iborat boʻlishi kerak. - A segment can't include another segment.
RU: Сегмент не может включать другой сегмент.
UZ: Segment boshqa segmentni oʻz ichiga ololmaydi. - Can't sort by ….
RU: Нельзя сортировать по ….
UZ: … boʻyicha saralab boʻlmaydi. - Check the value for …: …
RU: Проверьте значение …: …
UZ: … qiymatini tekshiring: … - Empty values go first or last.
RU: Пустые значения идут первыми или последними.
UZ: Boʻsh qiymatlar boshida yoki oxirida turadi. - Groups join conditions with and or or.
RU: Группы объединяют условия через and или or.
UZ: Guruhlar shartlarni and yoki or bilan birlashtiradi. - Invalid cursor.
RU: Неверный курсор.
UZ: Kursor notoʻgʻri. - Pick a segment.
RU: Выберите сегмент.
UZ: Segmentni tanlang. - Ranges use from and to.
RU: Для диапазона укажите from и to.
UZ: Oraliq uchun from va to ni kiriting. - Segment not found.
RU: Сегмент не найден.
UZ: Segment topilmadi. - Sort direction is asc or desc.
RU: Направление сортировки: asc или desc.
UZ: Saralash yoʻnalishi: asc yoki desc. - The operator … doesn't work with ….
RU: Оператор … не подходит для ….
UZ: … operatori … bilan ishlamaydi. - The query can have at most … characters.
RU: Запрос может содержать не больше … символов.
UZ: Soʻrov koʻpi bilan … belgidan iborat boʻlishi mumkin. - The query is not valid JSON.
RU: Запрос не является корректным JSON.
UZ: Soʻrov toʻgʻri JSON emas. - The query is too large.
RU: Запрос слишком большой.
UZ: Soʻrov juda katta. - The regex is not valid.
RU: Регулярное выражение указано неверно.
UZ: Regex notoʻgʻri. - This filter is not available in this workspace: has:….
RU: Этот фильтр недоступен в этом пространстве: has:….
UZ: Bu filtr ushbu ish joyida mavjud emas: has:…. - This filter is not available in this workspace: ….
RU: Этот фильтр недоступен в этом пространстве: ….
UZ: Bu filtr ushbu ish joyida mavjud emas: …. - Unexpected ) in the query.
RU: Лишняя ) в запросе.
UZ: Soʻrovda ortiqcha ) bor. - Unknown entity.
RU: Неизвестный тип записи.
UZ: Nomaʼlum yozuv turi. - Unknown field: ….
RU: Неизвестное поле: ….
UZ: Nomaʼlum maydon: …. - Unknown operator: ….
RU: Неизвестный оператор: ….
UZ: Nomaʼlum operator: …. - Unsupported value.
RU: Это значение не поддерживается.
UZ: Bu qiymat qoʻllab-quvvatlanmaydi. - Use at most … values.
RU: Не более … значений.
UZ: Koʻpi bilan … ta qiymat. - Use is or is not with segments.
RU: Для сегментов используйте is или is not.
UZ: Segmentlar uchun is yoki is not dan foydalaning. - Values can have at most … characters.
RU: Значения могут быть не длиннее … символов.
UZ: Qiymatlar koʻpi bilan … ta belgidan iborat boʻlishi mumkin.
Example response
Response
HTTP/1.1 422 Unprocessable Content
Content-Type: application/json; charset=utf-8
X-Request-Id: req_4f2a9c1e0b7d3a55
{
"error": {
"code": "invalid_query",
"message": "A regex must have 1 to 200 characters.",
"request_id": "req_4f2a9c1e0b7d3a55",
"docs_url": "https://developers.kweko.uz/errors/invalid_query"
}
}