ibm-cloud-sdk-core 2.17.13 → 2.17.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/es/lib/request-wrapper.js +6 -0
- package/lib/request-wrapper.js +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.17.14](https://github.com/IBM/node-sdk-core/compare/v2.17.13...v2.17.14) (2022-05-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* do not retry on 501 ([#197](https://github.com/IBM/node-sdk-core/issues/197)) ([5cb9081](https://github.com/IBM/node-sdk-core/commit/5cb9081f581c73b3ba16e470eb4c03c9b8f5c266))
|
|
7
|
+
|
|
1
8
|
## [2.17.13](https://github.com/IBM/node-sdk-core/compare/v2.17.12...v2.17.13) (2022-04-04)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -290,6 +290,12 @@ export class RequestWrapper {
|
|
|
290
290
|
retry: 4,
|
|
291
291
|
retryDelay: 1000,
|
|
292
292
|
httpMethodsToRetry: ['GET', 'HEAD', 'OPTIONS', 'DELETE', 'PUT', 'POST'],
|
|
293
|
+
// do not retry on 501
|
|
294
|
+
statusCodesToRetry: [
|
|
295
|
+
[429, 429],
|
|
296
|
+
[500, 500],
|
|
297
|
+
[502, 599],
|
|
298
|
+
],
|
|
293
299
|
instance: axiosInstance,
|
|
294
300
|
backoffType: 'exponential',
|
|
295
301
|
checkRetryAfter: true,
|
package/lib/request-wrapper.js
CHANGED
|
@@ -350,6 +350,12 @@ var RequestWrapper = /** @class */ (function () {
|
|
|
350
350
|
retry: 4,
|
|
351
351
|
retryDelay: 1000,
|
|
352
352
|
httpMethodsToRetry: ['GET', 'HEAD', 'OPTIONS', 'DELETE', 'PUT', 'POST'],
|
|
353
|
+
// do not retry on 501
|
|
354
|
+
statusCodesToRetry: [
|
|
355
|
+
[429, 429],
|
|
356
|
+
[500, 500],
|
|
357
|
+
[502, 599],
|
|
358
|
+
],
|
|
353
359
|
instance: axiosInstance,
|
|
354
360
|
backoffType: 'exponential',
|
|
355
361
|
checkRetryAfter: true,
|