Conversation
Coverage ReportIlc/serverCommit SHA:e4fd1535da55272714760e926e1d32f0c684ee51 Test coverage results 🧪File details
Ilc/clientCommit SHA:e4fd1535da55272714760e926e1d32f0c684ee51 Test coverage results 🧪File details
RegistryCommit SHA:e4fd1535da55272714760e926e1d32f0c684ee51 Test coverage results 🧪File details
|
stas-nc
approved these changes
Jan 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enhanced axiosErrorTransformer with comprehensive diagnostic information for debugging AssetsDiscovery and other HTTP failures
Added security measures to prevent sensitive data from leaking into logs
Extracted reusable helper functions (sanitizeHeaders, truncateBody) to helpers.ts
Changes
Enhanced Error Diagnostics
Network Error Details
When HTTP requests fail at the network level (before receiving a response), the transformer now captures:
code - Node.js error code indicating failure type (e.g., ECONNREFUSED, ETIMEDOUT, ENOTFOUND, ECONNRESET)
errno - System-level error number (e.g., -111 for connection refused, -110 for timeout)
syscall - System call that failed (e.g., connect, read, write)
cause - Underlying error message if wrapped (e.g., "getaddrinfo ENOTFOUND unknown-host.com")
This helps distinguish between:
Connection refused (ECONNREFUSED) - service is down or port closed
DNS failure (ENOTFOUND) - hostname cannot be resolved
Timeout (ETIMEDOUT) - request took too long
Connection reset (ECONNRESET) - server closed connection unexpectedly
Request Context
Additional request configuration is now captured:
baseURL - Base URL from axios config, helps identify which service instance was called
timeout - Configured timeout in ms, useful to correlate with timeout errors
statusText - HTTP status text from response, provides more context than status code alone (e.g., "Service Unavailable")