ES /docs

SYSTEM - Unhandled Rejection: Converting circular structure to JSON

Service
cupixworks-capture-postprocessor-agent
Occurrences
1
Status
Reported
Confidence
80%
Actionability
28%
Cluster ID
2143f4c6-3e12-4690-9283-5a768c076845
First Seen
2026-07-24 00:34 UTC
Last Seen
2026-07-24 00:34 UTC
Actions

SYSTEM - Unhandled Rejection: Converting circular structure to JSON

What Happened#

cupixworks-capture-postprocessor-agent (production, us-west-2, sellen team) emitted a top-level unhandledRejection at 2026-07-24 09:34:40 KST. The rejection reason was a TypeError: Converting circular structure to JSON produced when a promise-chained code path called JSON.stringify() on an object holding a live TLSSocket. The process-level handler in src/app.ts logged the message and forced process.exit(1), ending the running agent container.

Quick Facts#

Field Value
exception.class TypeError
exception.message Converting circular structure to JSON --> starting at object with constructor 'TLSSocket' | property '_httpMessage' -> object with constructor 'ClientRequest' --- property 'socket' closes the circle
top_frame packages/cupix-capture-postprocessor-agent/src/app.ts:33-37 (process.on('unhandledRejection'))
runtime Node.js (agent, TypeScript build)
env production, region us-west-2

Affected Teams#

Team / Domain Error Count Impact
sellen / capture-postprocessor-agent 1 하나의 agent 컨테이너가 unhandled rejection 로 process.exit(1). SQS cupix-capture-postprocessor-agent-production 큐의 in-flight 메시지 처리 중단; ECS 재기동 후 다른 태스크가 이어 처리. 사용자 노출 영향은 확인되지 않음 (uncertain — needs verification).

Timeline#

  1. 2026-07-24 09:33:00 KST — Datadog warn 로그 "socket hang up" (동일 서비스, 동일 인스턴스) — 외부 HTTPS 호출 하나가 소켓 레벨에서 실패.
  2. 2026-07-24 09:33:01 KSTBaseService::agentScaleOut | undefined queueAttributes warn — SQS getQueueAttributes 콜백에서 err 를 받아 resolve(undefined) 함 (AWS SDK 콜백 실패, 이 시점 네트워크 불안정).
  3. 2026-07-24 09:34:40 KSTSYSTEM - Unhandled Rejection: Converting circular structure to JSON … — top-level 핸들러 캡처 후 프로세스 종료.
  4. 2026-07-24 09:34:57 KST — 새 태스크가 job 1222405 를 BaseService::runByMessage 로 재개 (다른 컨테이너 또는 재기동).

Scoring#

Confidence 80% · Actionability 28%

Confidence#

Dimension Score Detail
Evidence completeness 5/5 24 code refs, 6 log queries
Code path explicitness 3/3 24 file:line refs
Log evidence 2/3 section, query
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 1/5 critical
Affected files 1/5 14 file(s)
Single repo 1/3 8 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