• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

decentraland / social-service-ea / 36678426143
91%
main: 91%

Build:
Build:
LAST BUILD BRANCH: 1.13.12
DEFAULT BRANCH: main
Ran 30 Sep 2026 06:34AM UTC
Jobs 1
Files 210
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Sep 2026 06:28AM UTC coverage: 91.219% (+0.01%) from 91.207%
36678426143

Pull #501

github

decentraland-bot
fix: treat a malformed websocket auth frame as a client rejection

Sentry: https://decentraland.sentry.io/issues/7713056598/ (SOCIAL-SERVICE-EA-3H)
Exception: SyntaxError (JSON.parse), culprit authenticateUser (controllers.handlers.uws:ws-handler)

authenticateUser passed the client's first frame straight to JSON.parse. A frame that is not
JSON raised a SyntaxError, which isExpectedAuthRejection cannot classify (it only knows the
middleware's 4xx RequestError). So every such frame was logged at error, sent to Sentry and
counted as a server_error. That is 32 events so far from 1.13.9 and 1.13.10. A JSON null
frame took a similar path: verify() threw a TypeError on it.

#473 kept this path reporting only because the error "never reached the middleware". The
fault is still the client's, the same as a malformed auth chain, which the middleware rejects
with a 400. parseAuthChainHeaders now raises that same 400 RequestError, with a fixed message
that never echoes the frame, when the frame is not JSON or not an object. It then leaves through
the existing path: warn, no Sentry, ws_auth_errors{type="client_rejected"}, 3003 close.

Catalyst 503s and unexpected throws inside verify() keep reporting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #501: fix: treat a malformed websocket auth frame as a client rejection

2606 of 3006 branches covered (86.69%)

Branch coverage included in aggregate %.

14 of 14 new or added lines in 1 file covered. (100.0%)

9 existing lines in 1 file now uncovered.

6255 of 6708 relevant lines covered (93.25%)

93.59 hits per line

Coverage Regressions

Lines Coverage ∆ File
9
93.14
0.47% src/controllers/handlers/uws/ws-handler.ts
Jobs
ID Job ID Ran Files Coverage
1 36678426143.1 30 Sep 2026 06:34AM UTC 420
92.08
GitHub Action Run
Source Files on build 36678426143
  • Tree
  • List 210
  • Changed 163
  • Source Changed 1
  • Coverage Changed 163
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #36678426143
  • Pull Request #501
  • PR Base - main (#35003301741)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc