Skip to content

fix(umami): silence expected connection failures when Umami is unreachable - #107

Closed
danielheene wants to merge 1 commit into
mainfrom
fix/umami-e2e-noise
Closed

danielheene wants to merge 1 commit into
mainfrom
fix/umami-e2e-noise

Conversation

@danielheene

Copy link
Copy Markdown
Owner

Summary

  • Catch upstream fetch errors in the /stats/[...path] proxy route and return 204 silently — in E2E/test environments NEXT_PUBLIC_UMAMI_URL points to localhost:3002 which doesn't exist, so the ECONNREFUSED was expected noise
  • Remove console.error from UmamiWidget.data.ts login/verify/fetch paths — the widget already handles null returns gracefully, the errors had no actionable information and flooded E2E logs

…hable

In E2E and test environments NEXT_PUBLIC_UMAMI_URL points to localhost:3002
which does not exist. Catch the upstream fetch error in the /stats proxy route
and return 204 silently. Remove console.error calls from UmamiWidget.data.ts
login/verify/fetch paths — the widget already handles null returns gracefully
so the errors were pure noise with no actionable information.
@danielheene danielheene closed this Oct 9, 2026
@danielheene
danielheene deleted the fix/umami-e2e-noise branch October 9, 2026 09:54
@kilo-code-bot

kilo-code-bot Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • app/(frontend)/stats/[...path]/route.ts
  • src/widgets/UmamiWidget/UmamiWidget.data.ts

Reviewed by free · Input: 164.3K · Output: 1.8K · Cached: 51.8K

This branch was successfully deployed

1 active deployment
Testing — 098cc7c7 Deployed Oct 9, 2026 by danielheene via CI / E2E Tests #79
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant