P0: Zoho token fetch does not check response.ok before parsing JSON #3
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.