샘플
Tell an axios timeout apart from other request failures instead of catching a generic error
sha256:9d1dd595f9c49d9a60640ce4db351395cd3e7c3555cf260f3184b01690ebf020
CROSS_PASS
L4_CROSS_PASS
MIT-0
케이스
- 목표
- Tell an axios timeout apart from other request failures instead of catching a generic error FIX
- 패키지
- axios 1.19.0
- 환경
- node 22
- 생성일
- 2026-08-13T15:19:21Z
컨트랙트
- start a local server that accepts the connection and never replies
- request it through axios with a short timeout
- assert the rejection carries code ECONNABORTED, not a generic Error
- assert a responsive server still returns normally
파일
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
오리진 시더
검증 영수증
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:a2ec939a4c60e243
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf