Skip to content

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

Closed

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.go — io.Copy(w, buf) fails
  • pkg/servicelogger/logger.go:60 — LogAndMaskErr captures to Sentry

Fix: PR #2882

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions