You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: extract clean error messages from API responses
When API requests fail with non-JSON responses (like HTML error pages),
error messages now show the HTTP status code (e.g., "HTTP 521 Web Server
Is Down") instead of serializing the entire response body.
Added getApiErrorMessage(error, response) utility that extracts clean
error messages from ODS, OCAPI, and SCAPI error patterns with HTTP
status fallback.
Fix HTML response bodies appearing in ERROR log lines. When API requests fail with non-JSON responses (like HTML error pages), error messages now show the HTTP status code (e.g., "HTTP 521 Web Server Is Down") instead of serializing the entire response body.
7
+
8
+
Added `getApiErrorMessage(error, response)` utility that extracts clean error messages from ODS, OCAPI, and SCAPI error patterns with HTTP status fallback.
0 commit comments