From d82c8523dbf9cbff109cf4e302fb2d1312ee8621 Mon Sep 17 00:00:00 2001 From: sfc-gh-ext-simba-jy Date: Wed, 20 Sep 2023 11:31:27 -0700 Subject: [PATCH] Changed back to the previous commit --- lib/connection/statement.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/connection/statement.js b/lib/connection/statement.js index 6adbca25e..7797d6505 100644 --- a/lib/connection/statement.js +++ b/lib/connection/statement.js @@ -1570,7 +1570,12 @@ function sendSfRequest(statementContext, options, appendQueryParamOnRetry) // retry, update the url if ((numRetries > 0) && appendQueryParamOnRetry) { - options.url = Util.url.appendParam(urlOrig, 'retry', true); + let retryUrl; + retryUrl = Util.url.appendParam(urlOrig, 'retryCount', numRetries); + if(connectionConfig.getIncludeRetryContext){ + retryUrl = Util.url.appendParam(retryUrl, 'retryReason', lastStatusCodeForRetry); + } + options.url = retryUrl; } sf.request(options);