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(DX-10060): retry transient network errors to prevent build crashes
Transient network-layer errors (ENOTFOUND, ENETUNREACH, ECONNRESET,
ECONNREFUSED, EAI_AGAIN, ETIMEDOUT, EHOSTUNREACH, ENETDOWN) now trigger
the SDK's configured retry policy instead of failing immediately.
A combinedRetryCondition composes the user-supplied retryCondition with
the new default network-error check. The user condition runs first; if it
throws, a warning is emitted via logHandler and the SDK falls back to the
default. The original config object is never mutated.
ECONNABORTED is excluded — @contentstack/core classifies it as a
structured TIMEOUT error and handles it separately.
Resolves: SF Case #00060601 (SentinelOne)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,8 @@
1
+
### Version: 5.5.1
2
+
#### Date: Aug-03-2026
3
+
Fix: Transient network-layer errors (ENOTFOUND, ENETUNREACH, ECONNRESET, ECONNREFUSED, EAI_AGAIN, ETIMEDOUT, EHOSTUNREACH, ENETDOWN) are now retried automatically using the SDK's configured retry policy instead of failing immediately.
4
+
Enhancement: User-supplied `retryCondition` is composed with the default network-error retry logic — both are honoured without either replacing the other. If `retryCondition` throws, the SDK logs a warning via `logHandler` and falls back to default retry behaviour.
5
+
1
6
### Version: 5.5.0
2
7
#### Date: Jul-27-2026
3
8
Enhancement: Entry variants support an optional branch name as the second argument to `variants()` on `Entry` and `Entries`. When provided, the branch is sent as the `branch` request header together with `x-cs-variant-uid`. Existing `variants(uid)` and `variants(uids)` calls remain backward compatible. Added unit and API tests for variant + branch requests.
0 commit comments