Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[fix] Terminate accounting export responses after streaming errors

Đã đóng
#1,701 7 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 7 ngày

@Rampop01 đang làm issue này rồi.

Từ ngày 21/10/2026.

  • #1720 của @Rampop01 — đã merge

Đánh giá

Issue này chưa được đánh giá.

Mô tả

backend bug points: 150 Stellar Wave

Labels: bug, backend, points: 150
File/location: backend/src/services/export.service.ts:222

Description:
Both exporters write headers/body before database work; their catch blocks only respond when headersSent is false. A database/mapping failure after the first write leaves the HTTP response open indefinitely.

Acceptance Criteria:

  • Terminate or destroy an already-started export response when database access or record mapping fails; do not leave the socket pending.
  • Inject failures before the first record and mid-export for CSV and JSON, and assert deterministic response completion without an unhandled error.

Notes:
Injected a database failure into both real exporters after their first write; both returned with headersSent=true and no end/destroy.

Audited commit: 649b6976a100fd964ce191428eef1faeb50aaa39. Closest prior issues reviewed: #1191, #819. This report concerns the specific failure or uncovered test paths described above, rather than repeating the original feature request.

Ngôn ngữ chính
TypeScript
Star
18
Fork
250
Merge trung bình
5 ngày 6 giờ
Pull request đã merge (30 ngày)
82

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của LabsCrypt/flowfi

Tất cả issue của LabsCrypt/flowfi

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.