diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cd027d..b1bd3cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -### v2.4.3 changes since 2.4.1 +### v2.4.5 changes since 2.4.1 - Improved retry handling to also retry http requests on network or socket level errors, not just HTTP 429 and 5xx errors. diff --git a/CLI/package.json b/CLI/package.json index c1ecf59..732fb1e 100644 --- a/CLI/package.json +++ b/CLI/package.json @@ -1,7 +1,7 @@ { "name": "wchtools-cli", "description": "Command line tools for IBM Watson Content Hub", - "version": "2.4.3", + "version": "2.4.5", "keywords": [ "cli" ], diff --git a/authoring-api/assetsHelper.js b/authoring-api/assetsHelper.js index 5718430..964ad97 100644 --- a/authoring-api/assetsHelper.js +++ b/authoring-api/assetsHelper.js @@ -1467,7 +1467,9 @@ class AssetsHelper extends BaseHelper { filterRetryPush (context, error, opts) { let retVal = false; - if (error.statusCode) { + if (utils.retryNetworkErrors(error) ) { + retVal = true; + } else if (error.statusCode) { // Determine whether the request should be retried, based on the status code for the error. switch (error.statusCode) { // 403 Forbidden - Handle the special case that sometimes occurs during authorization. In general we diff --git a/authoring-api/package.json b/authoring-api/package.json index 59cc81b..c125bc9 100644 --- a/authoring-api/package.json +++ b/authoring-api/package.json @@ -1,7 +1,7 @@ { "name": "wchtools-api", "description": "Tools API for IBM Watson Content Hub", - "version": "2.4.3", + "version": "2.4.5", "keywords": [ "api", "tools" diff --git a/package.json b/package.json index 752347d..582df87 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prod-tools", - "version": "2.4.3", + "version": "2.4.5", "author": "IBM Corporation", "license": "Apache-2.0", "bugs": {