ES /docs

RestClient::GatewayTimeout: 504 Gateway Timeout

Service
cupixworks-rest_client
Occurrences
11
Status
Ignored
Confidence
85%
Actionability
52%
Cluster ID
74fa66ab-def9-46c0-a72b-cfbd01a50ee7
First Seen
2024-05-10 14:56 UTC
Last Seen
2026-08-03 15:28 UTC
Actions
현재 상태 ignored 에서는 실행할 액션이 없습니다.

RestClient::GatewayTimeout: 504 Gateway Timeout

What Happened#

tesla (cupixworks-worker) 의 PostCaptureStateChangeWorker 가 capture 상태 변경 시 내부 운영용 Slack 채널 (capture-state) 로 알림 메시지를 Slack Incoming Webhook 에 POST 하는데, Slack 이 504 Gateway Timeout 을 반환했다. cupixworks-rest_client 는 실제 서비스가 아니라 tesla 의 RestClient outbound 호출을 계측하는 Datadog APM span 이름이다. 이 504 는 Cupix::HttpClient.post 의 재시도(4회) + Sidekiq retry: 1 로 모두 소진된 후에야 표면화되며, 백그라운드 내부 알림이라 사용자 영향이 없다. 저빈도(약 2년간 11건)의 transient Slack 인프라 이벤트다.

Quick Facts#

Field Value
exception.class RestClient::GatewayTimeout
exception.message 504 Gateway Timeout
top_frame lib/cupix/http_client.rb:37 (enqueue: app/workers/post_capture_state_change_worker.rb:15)
runtime Ruby 3.3.0, rest-client 2.1.0, Sidekiq 7.3.9
env production
downstream Slack Incoming Webhook (hooks.slack.com/services/...)

Affected Teams#

Team / Domain Error Count Impact
tesla (internal ops Slack notification) 11 (2024-05 ~ 2026-08) 없음 — capture 상태 변경 Slack 알림 1건 누락 가능 (사용자 비노출 내부 채널)

Timeline#

  1. 2024-05-10 23:56 KST — 최초 발생 (first_seen)
  2. 2026-08-04 00:28 KST — 최근 발생 (last_seen). 14일 span 검색에서 동일 경로 504 2건 확인
  3. 2026-08-04 — RCA 수행. 원인 = downstream Slack webhook transient 504

Scoring#

Confidence 85% · Actionability 52%

Confidence#

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

Actionability#

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