From 7c33ec989dbed91a0152383db4945d5a0921ed5c Mon Sep 17 00:00:00 2001
From: "github-merge-queue[bot]"
diff --git a/badge-maker_lib_xml.js.html b/badge-maker_lib_xml.js.html
index 9290e61b22..ea2ac5cd0a 100644
--- a/badge-maker_lib_xml.js.html
+++ b/badge-maker_lib_xml.js.html
@@ -138,7 +138,7 @@ module.exports = { escapeXml, stripXmlWhitespace, XmlElement, ElementList }
diff --git a/core_base-service_base-graphql.js.html b/core_base-service_base-graphql.js.html
index 8cb31b00f8..5ac179a742 100644
--- a/core_base-service_base-graphql.js.html
+++ b/core_base-service_base-graphql.js.html
@@ -78,6 +78,8 @@ class BaseGraphqlService extends BaseService {
* See {@link https://github.com/sindresorhus/got/blob/main/documentation/7-retry.md#errorcodes got error codes}
* for allowed keys
* and {@link module:core/base-service/errors~RuntimeErrorProps} for allowed values
+ * @param {number[]} [attrs.logErrors=[429]] An array of http error codes
+ * that will be logged (to sentry, if configured).
* @param {Function} [attrs.transformJson=data => data] Function which takes the raw json and transforms it before
* further processing. In case of multiple query in a single graphql call and few of them
* throw error, partial data might be used ignoring the error.
@@ -97,6 +99,7 @@ class BaseGraphqlService extends BaseService {
options = {},
httpErrorMessages = {},
systemErrors = {},
+ logErrors = [429],
transformJson = data => data,
transformErrors = defaultTransformErrors,
}) {
@@ -111,6 +114,7 @@ class BaseGraphqlService extends BaseService {
options: mergedOptions,
httpErrors: httpErrorMessages,
systemErrors,
+ logErrors,
})
const json = transformJson(this._parseJson(buffer))
if (json.errors) {
@@ -144,7 +148,7 @@ export default BaseGraphqlService
diff --git a/core_base-service_base-json.js.html b/core_base-service_base-json.js.html
index 72581abf2a..63f38fc899 100644
--- a/core_base-service_base-json.js.html
+++ b/core_base-service_base-json.js.html
@@ -68,6 +68,8 @@ class BaseJsonService extends BaseService {
* See {@link https://github.com/sindresorhus/got/blob/main/documentation/7-retry.md#errorcodes got error codes}
* for allowed keys
* and {@link module:core/base-service/errors~RuntimeErrorProps} for allowed values
+ * @param {number[]} [attrs.logErrors=[429]] An array of http error codes
+ * that will be logged (to sentry, if configured).
* @returns {object} Parsed response
* @see https://github.com/sindresorhus/got/blob/main/documentation/2-options.md
*/
@@ -77,6 +79,7 @@ class BaseJsonService extends BaseService {
options = {},
httpErrors = {},
systemErrors = {},
+ logErrors = [429],
}) {
const mergedOptions = {
...{ headers: { Accept: 'application/json' } },
@@ -87,6 +90,7 @@ class BaseJsonService extends BaseService {
options: mergedOptions,
httpErrors,
systemErrors,
+ logErrors,
})
const json = this._parseJson(buffer)
return this.constructor._validate(json, schema)
@@ -110,7 +114,7 @@ export default BaseJsonService
diff --git a/core_base-service_base-svg-scraping.js.html b/core_base-service_base-svg-scraping.js.html
index e6b569745d..e723e4c251 100644
--- a/core_base-service_base-svg-scraping.js.html
+++ b/core_base-service_base-svg-scraping.js.html
@@ -91,6 +91,8 @@ class BaseSvgScrapingService extends BaseService {
* See {@link https://github.com/sindresorhus/got/blob/main/documentation/7-retry.md#errorcodes got error codes}
* for allowed keys
* and {@link module:core/base-service/errors~RuntimeErrorProps} for allowed values
+ * @param {number[]} [attrs.logErrors=[429]] An array of http error codes
+ * that will be logged (to sentry, if configured).
* @returns {object} Parsed response
* @see https://github.com/sindresorhus/got/blob/main/documentation/2-options.md
*/
@@ -101,6 +103,7 @@ class BaseSvgScrapingService extends BaseService {
options = {},
httpErrors = {},
systemErrors = {},
+ logErrors = [429],
}) {
const logTrace = (...args) => trace.logTrace('fetch', ...args)
const mergedOptions = {
@@ -112,6 +115,7 @@ class BaseSvgScrapingService extends BaseService {
options: mergedOptions,
httpErrors,
systemErrors,
+ logErrors,
})
logTrace(emojic.dart, 'Response SVG', buffer)
const data = {
@@ -141,7 +145,7 @@ export default BaseSvgScrapingService
diff --git a/core_base-service_base-toml.js.html b/core_base-service_base-toml.js.html
index 0bcf9c9e34..3e379b4f30 100644
--- a/core_base-service_base-toml.js.html
+++ b/core_base-service_base-toml.js.html
@@ -61,6 +61,8 @@ class BaseTomlService extends BaseService {
* See {@link https://github.com/sindresorhus/got/blob/main/documentation/7-retry.md#errorcodes got error codes}
* for allowed keys
* and {@link module:core/base-service/errors~RuntimeErrorProps} for allowed values
+ * @param {number[]} [attrs.logErrors=[429]] An array of http error codes
+ * that will be logged (to sentry, if configured).
* @returns {object} Parsed response
* @see https://github.com/sindresorhus/got/blob/main/documentation/2-options.md
*/
@@ -70,6 +72,7 @@ class BaseTomlService extends BaseService {
options = {},
httpErrors = {},
systemErrors = {},
+ logErrors = [429],
}) {
const logTrace = (...args) => trace.logTrace('fetch', ...args)
const mergedOptions = {
@@ -89,6 +92,7 @@ class BaseTomlService extends BaseService {
options: mergedOptions,
httpErrors,
systemErrors,
+ logErrors,
})
let parsed
try {
@@ -124,7 +128,7 @@ export default BaseTomlService
diff --git a/core_base-service_base-xml.js.html b/core_base-service_base-xml.js.html
index c0d04d13b4..39b93a00b2 100644
--- a/core_base-service_base-xml.js.html
+++ b/core_base-service_base-xml.js.html
@@ -62,6 +62,8 @@ class BaseXmlService extends BaseService {
* See {@link https://github.com/sindresorhus/got/blob/main/documentation/7-retry.md#errorcodes got error codes}
* for allowed keys
* and {@link module:core/base-service/errors~RuntimeErrorProps} for allowed values
+ * @param {number[]} [attrs.logErrors=[429]] An array of http error codes
+ * that will be logged (to sentry, if configured).
* @param {object} [attrs.parserOptions={}] Options to pass to fast-xml-parser. See
* [documentation](https://github.com/NaturalIntelligence/fast-xml-parser#xml-to-json)
* @returns {object} Parsed response
@@ -74,6 +76,7 @@ class BaseXmlService extends BaseService {
options = {},
httpErrors = {},
systemErrors = {},
+ logErrors = [429],
parserOptions = {},
}) {
const logTrace = (...args) => trace.logTrace('fetch', ...args)
@@ -86,6 +89,7 @@ class BaseXmlService extends BaseService {
options: mergedOptions,
httpErrors,
systemErrors,
+ logErrors,
})
const validateResult = XMLValidator.validate(buffer)
if (validateResult !== true) {
@@ -120,7 +124,7 @@ export default BaseXmlService
diff --git a/core_base-service_base-yaml.js.html b/core_base-service_base-yaml.js.html
index 2af1f39564..7436410393 100644
--- a/core_base-service_base-yaml.js.html
+++ b/core_base-service_base-yaml.js.html
@@ -61,6 +61,8 @@ class BaseYamlService extends BaseService {
* See {@link https://github.com/sindresorhus/got/blob/main/documentation/7-retry.md#errorcodes got error codes}
* for allowed keys
* and {@link module:core/base-service/errors~RuntimeErrorProps} for allowed values
+ * @param {number[]} [attrs.logErrors=[429]] An array of http error codes
+ * that will be logged (to sentry, if configured).
* @param {object} [attrs.encoding='utf8'] Character encoding
* @returns {object} Parsed response
* @see https://github.com/sindresorhus/got/blob/main/documentation/2-options.md
@@ -71,6 +73,7 @@ class BaseYamlService extends BaseService {
options = {},
httpErrors = {},
systemErrors = {},
+ logErrors = [429],
encoding = 'utf8',
}) {
const logTrace = (...args) => trace.logTrace('fetch', ...args)
@@ -88,6 +91,7 @@ class BaseYamlService extends BaseService {
options: mergedOptions,
httpErrors,
systemErrors,
+ logErrors,
})
let parsed
try {
@@ -123,7 +127,7 @@ export default BaseYamlService
diff --git a/core_base-service_base.js.html b/core_base-service_base.js.html
index bc55122911..7cc1171ef6 100644
--- a/core_base-service_base.js.html
+++ b/core_base-service_base.js.html
@@ -291,7 +291,13 @@ class BaseService {
this._metricHelper = metricHelper
}
- async _request({ url, options = {}, httpErrors = {}, systemErrors = {} }) {
+ async _request({
+ url,
+ options = {},
+ httpErrors = {},
+ systemErrors = {},
+ logErrors = [429],
+ }) {
const logTrace = (...args) => trace.logTrace('fetch', ...args)
let logUrl = url
const logOptions = Object.assign({}, options)
@@ -318,7 +324,7 @@ class BaseService {
)
await this._meterResponse(res, buffer)
logTrace(emojic.dart, 'Response status code', res.statusCode)
- return checkErrorResponse(httpErrors)({ buffer, res })
+ return checkErrorResponse(httpErrors, logErrors)({ buffer, res })
}
static enabledMetrics = []
@@ -679,7 +685,7 @@ export default BaseService
diff --git a/core_base-service_errors.js.html b/core_base-service_errors.js.html
index 5417776860..684c0343cc 100644
--- a/core_base-service_errors.js.html
+++ b/core_base-service_errors.js.html
@@ -265,7 +265,7 @@ export {
diff --git a/core_base-service_graphql.js.html b/core_base-service_graphql.js.html
index ae177d5161..b3ff85f687 100644
--- a/core_base-service_graphql.js.html
+++ b/core_base-service_graphql.js.html
@@ -93,7 +93,7 @@ export { mergeQueries }
diff --git a/core_base-service_openapi.js.html b/core_base-service_openapi.js.html
index 3609d8848c..b6a849b162 100644
--- a/core_base-service_openapi.js.html
+++ b/core_base-service_openapi.js.html
@@ -518,7 +518,7 @@ export {
diff --git a/core_base-service_resource-cache.js.html b/core_base-service_resource-cache.js.html
index 37d59aba9d..ed30795a69 100644
--- a/core_base-service_resource-cache.js.html
+++ b/core_base-service_resource-cache.js.html
@@ -111,7 +111,7 @@ export { getCachedResource, clearResourceCache }
diff --git a/core_server_prometheus-metrics.js.html b/core_server_prometheus-metrics.js.html
index 45f2f43af2..17faf3c42b 100644
--- a/core_server_prometheus-metrics.js.html
+++ b/core_server_prometheus-metrics.js.html
@@ -127,7 +127,7 @@ export default class PrometheusMetrics {
diff --git a/core_server_server.js.html b/core_server_server.js.html
index dbdd47ac8d..f072ff1092 100644
--- a/core_server_server.js.html
+++ b/core_server_server.js.html
@@ -645,7 +645,7 @@ export default Server
diff --git a/core_service-test-runner_create-service-tester.js.html b/core_service-test-runner_create-service-tester.js.html
index 4328b3c9d9..37ead8d86c 100644
--- a/core_service-test-runner_create-service-tester.js.html
+++ b/core_service-test-runner_create-service-tester.js.html
@@ -74,7 +74,7 @@ export default createServiceTester
diff --git a/core_service-test-runner_icedfrisby-shields.js.html b/core_service-test-runner_icedfrisby-shields.js.html
index 057c42159a..e41100e590 100644
--- a/core_service-test-runner_icedfrisby-shields.js.html
+++ b/core_service-test-runner_icedfrisby-shields.js.html
@@ -146,7 +146,7 @@ export default factory
diff --git a/core_service-test-runner_runner.js.html b/core_service-test-runner_runner.js.html
index a767aafa38..28b2c955b8 100644
--- a/core_service-test-runner_runner.js.html
+++ b/core_service-test-runner_runner.js.html
@@ -118,7 +118,7 @@ export default Runner
diff --git a/core_service-test-runner_service-tester.js.html b/core_service-test-runner_service-tester.js.html
index cdb9b17501..bb28b30fa3 100644
--- a/core_service-test-runner_service-tester.js.html
+++ b/core_service-test-runner_service-tester.js.html
@@ -184,7 +184,7 @@ export default ServiceTester
diff --git a/core_service-test-runner_services-for-title.js.html b/core_service-test-runner_services-for-title.js.html
index dc974be37f..8b7fdd8986 100644
--- a/core_service-test-runner_services-for-title.js.html
+++ b/core_service-test-runner_services-for-title.js.html
@@ -75,7 +75,7 @@ export default servicesForTitle
diff --git a/core_token-pooling_token-pool.js.html b/core_token-pooling_token-pool.js.html
index 9fcc31d752..abcbf3da4d 100644
--- a/core_token-pooling_token-pool.js.html
+++ b/core_token-pooling_token-pool.js.html
@@ -379,7 +379,7 @@ export { sanitizeToken, Token, TokenPool }
diff --git a/global.html b/global.html
index bb341311e5..64d48bc1ad 100644
--- a/global.html
+++ b/global.html
@@ -684,7 +684,7 @@
diff --git a/index.html b/index.html
index 384ef8572e..14189f89e9 100644
--- a/index.html
+++ b/index.html
@@ -221,7 +221,7 @@ under their terms and license.
logErrorsAn array of http error codes +that will be logged (to sentry, if configured).
transformJsonlogErrorsAn array of http error codes +that will be logged (to sentry, if configured).
logErrorsAn array of http error codes +that will be logged (to sentry, if configured).
logErrorsAn array of http error codes +that will be logged (to sentry, if configured).
logErrorsAn array of http error codes +that will be logged (to sentry, if configured).
parserOptionslogErrorsAn array of http error codes +that will be logged (to sentry, if configured).
encodingfoobar@v1.23. D
:user/:repo.
local-shields-io-production.yml (see
diff --git a/tutorial-releases.html b/tutorial-releases.html
index e53ef65c99..167367f1b7 100644
--- a/tutorial-releases.html
+++ b/tutorial-releases.html
@@ -79,7 +79,7 @@
public.requireCloudflare: true.