Frontend API client catch blocks swallow all exceptions #23

Open
opened 2026-07-25 11:16:53 +00:00 by GKaszewski · 0 comments
Owner

Severity: Medium

The catch { // ignore } blocks in the request() function in k-tv-frontend/lib/api.ts swallow ALL exceptions, not just JSON parse errors.

This makes debugging impossible — network errors, auth failures, and server errors all silently disappear. Catch only the specific errors you intend to handle.

**Severity: Medium** The `catch { // ignore }` blocks in the `request()` function in `k-tv-frontend/lib/api.ts` swallow ALL exceptions, not just JSON parse errors. This makes debugging impossible — network errors, auth failures, and server errors all silently disappear. Catch only the specific errors you intend to handle.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GKaszewski/k-tv#23