P0: Zoho token fetch does not check response.ok before parsing JSON #3

Open
opened 2026-05-13 20:39:36 -05:00 by null · 0 comments
Owner

Severity: P0 — Critical

File: server/index.js ~line 166

Problem: fetch() in getZohoAccessToken() calls response.json() without checking if status is 2xx. Network errors or 4xx/5xx responses cause unhandled exceptions.

Impact: Unhandled promise rejection → app may crash or silently fail.

Fix: Add response.ok check and throw descriptive error on non-2xx responses.

## Severity: P0 — Critical **File:** server/index.js ~line 166 **Problem:** fetch() in getZohoAccessToken() calls response.json() without checking if status is 2xx. Network errors or 4xx/5xx responses cause unhandled exceptions. **Impact:** Unhandled promise rejection → app may crash or silently fail. **Fix:** Add response.ok check and throw descriptive error on non-2xx responses.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: null/Queue-North-Website#3
No description provided.