Skip to content

CAS download service logs client disconnections as errors and sends to Sentry #2883

Description

@migmartri

When a client disconnects mid-download from the CAS HTTP download service, the server encounters a connection reset by peer or broken pipe error during io.Copy to the response writer. This error flows through LogAndMaskErr which logs it as an ERROR and sends it to Sentry.

Client disconnections are normal and expected — they should not be treated as server errors or generate Sentry noise.

Stack trace:

  • app/artifact-cas/internal/service/download.goio.Copy(w, buf) fails
  • pkg/servicelogger/logger.go:60LogAndMaskErr captures to Sentry

Fix: PR #2882

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions