ES /docs

Cupix::Errors::Argument: No mapping found for [id] in order to sort on

Service
cupixworks-api
Occurrences
20
Status
Ignored
Confidence
90%
Actionability
28%
Cluster ID
eb0195be-a201-475f-a1a4-3e929ff2bad4
First Seen
2025-01-23 05:01 UTC
Last Seen
2026-07-20 07:01 UTC
Actions
현재 상태 ignored 에서는 실행할 액션이 없습니다.

Cupix::Errors::Argument: No mapping found for [id] in order to sort on

What Happened#

cupixworks-api (tesla) 의 목록 조회 API (GET /api/v1/panos, GET /api/v1/floorplans 등) 에 클라이언트가 인덱스 매핑에 존재하지 않는 필드로 정렬을 요청(?sort=id, ?order_by=revision, ?sort_order_by=updated_at desc 등)하면, tesla 가 그 값을 검증 없이 Elasticsearch sort 절에 그대로 전달한다. ES 는 query_shard_exception No mapping found for [X] in order to sort on ([400]) 을 반환하고, tesla 는 이를 [502] BG10002 Bad Gateway on Elasticsearch 로 클라이언트에 응답한다. 즉 클라이언트 입력 오류(4xx 성격)가 서버 게이트웨이 오류(5xx)로 잘못 매핑되어 Error Tracking 에 집계된 것으로, 서버 로직 결함은 아니다.

Quick Facts#

Field Value
exception.class Cupix::Errors::Argument (representative) / 실제 응답은 Cupix::Errors::BadGateway BG10002
exception.message No mapping found for [id] in order to sort on
top_frame app/controllers/concerns/searchable_controller.rb:399-402 (build_sort_query)
runtime Ruby on Rails (tesla monorepo), Elasticsearch 7.5
env production (multi-region)

Affected Teams#

Team / Domain Error Count Impact
cupixworks-api (tesla) — 목록 조회 API retention 창 8건 (누적 21) 정렬 파라미터에 잘못된 필드를 보낸 요청이 502 응답. 정상 파라미터 요청에는 영향 없음

Timeline#

  1. 2025-01-23 14:01 KST — 최초 발생 (first_seen)
  2. 2026-07-20 16:01 KST — 클러스터 last_seen (Error Tracking 집계 기준)
  3. 2026-07-27 09:18 KST — retention 창 내 실제 로그 확인 ([502] GET /api/v1/panos, sort field [-id]/[id desc]/[id])
  4. 2026-07-27 15:10~17:56 KST[502] GET /api/v1/floorplans, sort field [revision] 반복
  5. 2026-08-04 — RCA 수행

Scoring#

Confidence 90% · Actionability 28%

Confidence#

Dimension Score Detail
Evidence completeness 5/5 25 code refs, 7 log queries
Code path explicitness 3/3 25 file:line refs
Log evidence 3/3 section, query, pattern
RCA structure 3/3 3/3 sections
Revision history 1/3 1 revision(s)
Agent execution 3/3 success

Actionability#

Dimension Score Detail
Fix complexity 1/5 critical
Affected files 1/5 20 file(s)
Single repo 1/3 2 service(s)
Immediate actions 0/3 absent
Testability 0/3 no test info
External dependency 1/3 external deps found
Data migration 3/3 no migration