cockroachdb / cockroachdb/cockroach

"Response closed without headers" error in trackAdBlockStatus function

Open
#104,911 0 comments 0 reactions 0 assignees View on GitHub
C-bug T-observability
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

**Describe the problem**

During the execution of the `trackAdBlockStatus` function in LoginClient, an error occurs when the server responds without headers. The error message returned is "Response closed without headers".

**To Reproduce**

A replay isn't available but we know that it came from [this](https://github.com/cockroachlabs/managed-service/blob/3f14ead0e36bcfac091f2991146fc5ec9d1bda67/console/assets/js/console/consolepb/console_pb_service.js#L7213) line in the trackAdBlockStatus function.

**Expected behavior**
A successful execution of the `trackAdBlockStatus` function without any errors.

**Additional data / screenshots**
This error was detected on [Datadog](https://cockroachlabs-prod.datadoghq.com/rum/error-tracking/issue/4280310a-8448-11ed-b10a-da7ad0900002?from_ts=1685560889132&to_ts=1686770488497&live=true) about 13 times in the past two weeks. The following stack trace is available:
```
Error: Response closed without headers
at Object.onEnd @ https://cockroachlabs.cloud/assets/application.48366eb381b9edaa53c3.js:182:962503
at @ https://cockroachlabs.cloud/assets/common.7563b6f97f8b8cb27b09.js:301:547
at Array. @ https://cockroachlabs.cloud/assets/common.7563b6f97f8b8cb27b09.js:300:300295
at y @ https://cockroachlabs.cloud/assets/common.7563b6f97f8b8cb27b09.js:300:296102
at @ https://cockroachlabs.cloud/assets/common.7563b6f97f8b8cb27b09.js:300:296288
```

It also mainly affected `/signup` (58% of errors) and `/invites/accept/:id` (15% of errors) the most.

**Environment:**
- CockroachDB version: Cockroach Serverless
- Server OS: Windows 10
- Client app: Cockroach Console, Microsoft Edge v114.0.1823.43

Jira issue: CRDB-28772

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.