@snyk/error-catalog-nodejs-public 5.33.0 → 5.34.1
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/package.json +1 -1
- package/src/catalogs/CLI-error-catalog.d.ts +3 -0
- package/src/catalogs/CLI-error-catalog.js +8 -0
- package/src/catalogs/CLI-error-catalog.js.map +1 -1
- package/src/catalogs/Code-error-catalog.d.ts +29 -0
- package/src/catalogs/Code-error-catalog.js +76 -1
- package/src/catalogs/Code-error-catalog.js.map +1 -1
- package/src/catalogs/CustomBaseImages-error-catalog.d.ts +19 -0
- package/src/catalogs/CustomBaseImages-error-catalog.js +43 -0
- package/src/catalogs/CustomBaseImages-error-catalog.js.map +1 -1
- package/src/catalogs/Fix-error-catalog.d.ts +22 -0
- package/src/catalogs/Fix-error-catalog.js +44 -0
- package/src/catalogs/Fix-error-catalog.js.map +1 -1
- package/src/catalogs/Integration-error-catalog.d.ts +1 -0
- package/src/catalogs/Integration-error-catalog.js +2 -0
- package/src/catalogs/Integration-error-catalog.js.map +1 -1
- package/src/catalogs/IsolatedBuilds-error-catalog.d.ts +4 -0
- package/src/catalogs/IsolatedBuilds-error-catalog.js +13 -0
- package/src/catalogs/IsolatedBuilds-error-catalog.js.map +1 -1
- package/src/catalogs/OpenAPI-error-catalog.d.ts +8 -0
- package/src/catalogs/OpenAPI-error-catalog.js +16 -0
- package/src/catalogs/OpenAPI-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceEcosystems-error-catalog.d.ts +77 -0
- package/src/catalogs/OpenSourceEcosystems-error-catalog.js +352 -0
- package/src/catalogs/OpenSourceEcosystems-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceProjectIssues-error-catalog.d.ts +5 -0
- package/src/catalogs/OpenSourceProjectIssues-error-catalog.js +10 -0
- package/src/catalogs/OpenSourceProjectIssues-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.d.ts +5 -0
- package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js +10 -0
- package/src/catalogs/OpenSourceProjectSnapshots-error-catalog.js.map +1 -1
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.d.ts +2 -0
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.js +4 -0
- package/src/catalogs/OpenSourceUnmanaged-error-catalog.js.map +1 -1
- package/src/catalogs/PRChecks-error-catalog.d.ts +11 -0
- package/src/catalogs/PRChecks-error-catalog.js +61 -0
- package/src/catalogs/PRChecks-error-catalog.js.map +1 -1
- package/src/catalogs/Policies-error-catalog.d.ts +1 -0
- package/src/catalogs/Policies-error-catalog.js +3 -0
- package/src/catalogs/Policies-error-catalog.js.map +1 -1
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.d.ts +20 -0
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js +40 -0
- package/src/catalogs/PurlVulnerabilityFetching-error-catalog.js.map +1 -1
- package/src/catalogs/SCM-error-catalog.d.ts +6 -0
- package/src/catalogs/SCM-error-catalog.js +16 -0
- package/src/catalogs/SCM-error-catalog.js.map +1 -1
- package/src/catalogs/SbomExport-error-catalog.d.ts +9 -0
- package/src/catalogs/SbomExport-error-catalog.js +18 -0
- package/src/catalogs/SbomExport-error-catalog.js.map +1 -1
- package/src/catalogs/SbomTest-error-catalog.d.ts +10 -0
- package/src/catalogs/SbomTest-error-catalog.js +29 -0
- package/src/catalogs/SbomTest-error-catalog.js.map +1 -1
- package/src/catalogs/Snyk-error-catalog.d.ts +8 -0
- package/src/catalogs/Snyk-error-catalog.js +22 -0
- package/src/catalogs/Snyk-error-catalog.js.map +1 -1
- package/src/catalogs/Target-error-catalog.d.ts +2 -0
- package/src/catalogs/Target-error-catalog.js +4 -0
- package/src/catalogs/Target-error-catalog.js.map +1 -1
- package/src/catalogs/error-codes.d.ts +1 -0
- package/src/catalogs/error-codes.js +1 -0
- package/src/catalogs/error-codes.js.map +1 -1
- package/src/problem-error.js +1 -1
- package/src/problem-error.js.map +1 -1
- package/src/types.d.ts +2 -1
- package/src/types.js.map +1 -1
|
@@ -25,6 +25,7 @@ const problem_error_1 = require("../problem-error");
|
|
|
25
25
|
* @summary SBOM generation export server error
|
|
26
26
|
* @category SbomExport
|
|
27
27
|
* @param {string} details the specific details that causes this error
|
|
28
|
+
* @param {string} description the general description for this error
|
|
28
29
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
29
30
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
30
31
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -36,6 +37,7 @@ class InternalServerError extends problem_error_1.ProblemError {
|
|
|
36
37
|
title: 'SBOM generation export server error',
|
|
37
38
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-9000',
|
|
38
39
|
status: 500,
|
|
40
|
+
description: `An unexpected error occurred during the SBOM generation. Review the request, then try again. If the error persists, contact Snyk Support.`,
|
|
39
41
|
errorCode: 'SNYK-OS-9000',
|
|
40
42
|
level: 'error',
|
|
41
43
|
classification: types_1.Classification.UNEXPECTED,
|
|
@@ -52,6 +54,7 @@ exports.InternalServerError = InternalServerError;
|
|
|
52
54
|
* @summary Dependency graph error
|
|
53
55
|
* @category SbomExport
|
|
54
56
|
* @param {string} details the specific details that causes this error
|
|
57
|
+
* @param {string} description the general description for this error
|
|
55
58
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
56
59
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
57
60
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -63,6 +66,7 @@ class UnexpectedDepGraphResponseError extends problem_error_1.ProblemError {
|
|
|
63
66
|
title: 'Dependency graph error',
|
|
64
67
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-9001',
|
|
65
68
|
status: 500,
|
|
69
|
+
description: `An unexpected dependency graph error occurred. Review the request, then try again. If the error persists, contact Snyk Support.`,
|
|
66
70
|
errorCode: 'SNYK-OS-9001',
|
|
67
71
|
level: 'error',
|
|
68
72
|
classification: types_1.Classification.UNEXPECTED,
|
|
@@ -79,6 +83,7 @@ exports.UnexpectedDepGraphResponseError = UnexpectedDepGraphResponseError;
|
|
|
79
83
|
* @summary Error parsing dependency graph
|
|
80
84
|
* @category SbomExport
|
|
81
85
|
* @param {string} details the specific details that causes this error
|
|
86
|
+
* @param {string} description the general description for this error
|
|
82
87
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
83
88
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
84
89
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -90,6 +95,7 @@ class UnexpectedParseDepGraphError extends problem_error_1.ProblemError {
|
|
|
90
95
|
title: 'Error parsing dependency graph',
|
|
91
96
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-9002',
|
|
92
97
|
status: 500,
|
|
98
|
+
description: `The dependency graph cannot be parsed due to an unexpected error. Review the request, then try again. If the error persists, contact Snyk Support.`,
|
|
93
99
|
errorCode: 'SNYK-OS-9002',
|
|
94
100
|
level: 'error',
|
|
95
101
|
classification: types_1.Classification.UNEXPECTED,
|
|
@@ -106,6 +112,7 @@ exports.UnexpectedParseDepGraphError = UnexpectedParseDepGraphError;
|
|
|
106
112
|
* @summary SBOM not supported due to project type
|
|
107
113
|
* @category SbomExport
|
|
108
114
|
* @param {string} details the specific details that causes this error
|
|
115
|
+
* @param {string} description the general description for this error
|
|
109
116
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
110
117
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
111
118
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -117,6 +124,7 @@ class IaCOrSASTProjectError extends problem_error_1.ProblemError {
|
|
|
117
124
|
title: 'SBOM not supported due to project type',
|
|
118
125
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-9003',
|
|
119
126
|
status: 404,
|
|
127
|
+
description: `Only SBOMs for Snyk Open Source or Snyk Container projects are supported.`,
|
|
120
128
|
errorCode: 'SNYK-OS-9003',
|
|
121
129
|
level: 'warn',
|
|
122
130
|
classification: types_1.Classification.UNSUPPORTED,
|
|
@@ -133,6 +141,7 @@ exports.IaCOrSASTProjectError = IaCOrSASTProjectError;
|
|
|
133
141
|
* @summary SBOM not supported
|
|
134
142
|
* @category SbomExport
|
|
135
143
|
* @param {string} details the specific details that causes this error
|
|
144
|
+
* @param {string} description the general description for this error
|
|
136
145
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
137
146
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
138
147
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -144,6 +153,7 @@ class UnsupportedProjectError extends problem_error_1.ProblemError {
|
|
|
144
153
|
title: 'SBOM not supported',
|
|
145
154
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-9004',
|
|
146
155
|
status: 404,
|
|
156
|
+
description: `Only SBOMs for open source projects are supported (Snyk Open Source).`,
|
|
147
157
|
errorCode: 'SNYK-OS-9004',
|
|
148
158
|
level: 'warn',
|
|
149
159
|
classification: types_1.Classification.UNSUPPORTED,
|
|
@@ -160,6 +170,7 @@ exports.UnsupportedProjectError = UnsupportedProjectError;
|
|
|
160
170
|
* @summary Dependency graph request cannot be processed
|
|
161
171
|
* @category SbomExport
|
|
162
172
|
* @param {string} details the specific details that causes this error
|
|
173
|
+
* @param {string} description the general description for this error
|
|
163
174
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
164
175
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
165
176
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -171,6 +182,7 @@ class DepGraphResponseError extends problem_error_1.ProblemError {
|
|
|
171
182
|
title: 'Dependency graph request cannot be processed',
|
|
172
183
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-9005',
|
|
173
184
|
status: 404,
|
|
185
|
+
description: `The server cannot process the request due to incomplete data. Review the request, then try again.`,
|
|
174
186
|
errorCode: 'SNYK-OS-9005',
|
|
175
187
|
level: 'warn',
|
|
176
188
|
classification: types_1.Classification.ACTIONABLE,
|
|
@@ -190,6 +202,7 @@ exports.DepGraphResponseError = DepGraphResponseError;
|
|
|
190
202
|
* @summary Authorization failed due to missing API token
|
|
191
203
|
* @category SbomExport
|
|
192
204
|
* @param {string} details the specific details that causes this error
|
|
205
|
+
* @param {string} description the general description for this error
|
|
193
206
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
194
207
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
195
208
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -201,6 +214,7 @@ class MissingAuthTokenError extends problem_error_1.ProblemError {
|
|
|
201
214
|
title: 'Authorization failed due to missing API token',
|
|
202
215
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-9006',
|
|
203
216
|
status: 401,
|
|
217
|
+
description: `The API token is misconfigured or expired. Configure or generate the API token, then try again.`,
|
|
204
218
|
errorCode: 'SNYK-OS-9006',
|
|
205
219
|
level: 'warn',
|
|
206
220
|
classification: types_1.Classification.ACTIONABLE,
|
|
@@ -219,6 +233,7 @@ exports.MissingAuthTokenError = MissingAuthTokenError;
|
|
|
219
233
|
* @summary Client request cannot be processed
|
|
220
234
|
* @category SbomExport
|
|
221
235
|
* @param {string} details the specific details that causes this error
|
|
236
|
+
* @param {string} description the general description for this error
|
|
222
237
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
223
238
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
224
239
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -230,6 +245,7 @@ class EmptyRequestBodyError extends problem_error_1.ProblemError {
|
|
|
230
245
|
title: 'Client request cannot be processed',
|
|
231
246
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-9007',
|
|
232
247
|
status: 400,
|
|
248
|
+
description: `The body of the request is empty. Review the request, then try again.`,
|
|
233
249
|
errorCode: 'SNYK-OS-9007',
|
|
234
250
|
level: 'warn',
|
|
235
251
|
classification: types_1.Classification.ACTIONABLE,
|
|
@@ -246,6 +262,7 @@ exports.EmptyRequestBodyError = EmptyRequestBodyError;
|
|
|
246
262
|
* @summary Invalid dependency graph
|
|
247
263
|
* @category SbomExport
|
|
248
264
|
* @param {string} details the specific details that causes this error
|
|
265
|
+
* @param {string} description the general description for this error
|
|
249
266
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
250
267
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
251
268
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -257,6 +274,7 @@ class InvalidDepGraphError extends problem_error_1.ProblemError {
|
|
|
257
274
|
title: 'Invalid dependency graph',
|
|
258
275
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-os-9008',
|
|
259
276
|
status: 422,
|
|
277
|
+
description: `The supplied dependency graph was not valid. Review the request, then try again.`,
|
|
260
278
|
errorCode: 'SNYK-OS-9008',
|
|
261
279
|
level: 'warn',
|
|
262
280
|
classification: types_1.Classification.ACTIONABLE,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SbomExport-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/SbomExport-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oCAA0C;AAC1C,oDAAgD;AAEhD
|
|
1
|
+
{"version":3,"file":"SbomExport-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/SbomExport-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oCAA0C;AAC1C,oDAAgD;AAEhD;;;;;;;;;;;;GAYG;AACH,MAAa,mBAAoB,SAAQ,4BAAY;IACnD,YACI,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,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB,EACjB,IAAe;QAEjB,KAAK,CACH;YACE,KAAK,EAAE,oCAAoC;YAC3C,IAAI,EAAE,gEAAgE;YACtE,MAAM,EAAE,GAAG;YACX,WAAW,EAAE,uEAAuE;YACpF,SAAS,EAAE,cAAc;YACzB,KAAK,EAAE,MAAM;YACb,cAAc,EAAE,sBAAc,CAAC,UAAU;YACzC,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EAAE,EAAE,IACN,cAAc,GAEnB,KAAK,EACL,IAAI,CACL,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA7BD,sDA6BC;AAED;;;;;;;;;;;;GAYG;AACH,MAAa,oBAAqB,SAAQ,4BAAY;IACpD,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB,EACjB,IAAe;QAEjB,KAAK,CACH;YACE,KAAK,EAAE,0BAA0B;YACjC,IAAI,EAAE,gEAAgE;YACtE,MAAM,EAAE,GAAG;YACX,WAAW,EAAE,kFAAkF;YAC/F,SAAS,EAAE,cAAc;YACzB,KAAK,EAAE,MAAM;YACb,cAAc,EAAE,sBAAc,CAAC,UAAU;YACzC,QAAQ;SACT,EACD,OAAO,kBAEL,KAAK,EAAE,EAAE,IACN,cAAc,GAEnB,KAAK,EACL,IAAI,CACL,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA7BD,oDA6BC"}
|
|
@@ -21,6 +21,7 @@ import { ProblemError } from '../problem-error';
|
|
|
21
21
|
* @summary SBOM test error
|
|
22
22
|
* @category SbomTest
|
|
23
23
|
* @param {string} details the specific details that causes this error
|
|
24
|
+
* @param {string} description the general description for this error
|
|
24
25
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
25
26
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
26
27
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -39,6 +40,7 @@ export declare class InternalError extends ProblemError {
|
|
|
39
40
|
* @summary Organization ID mismatch
|
|
40
41
|
* @category SbomTest
|
|
41
42
|
* @param {string} details the specific details that causes this error
|
|
43
|
+
* @param {string} description the general description for this error
|
|
42
44
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
43
45
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
44
46
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -54,6 +56,7 @@ export declare class OrgIDMismatchError extends ProblemError {
|
|
|
54
56
|
* @summary Unable to find SBOM test
|
|
55
57
|
* @category SbomTest
|
|
56
58
|
* @param {string} details the specific details that causes this error
|
|
59
|
+
* @param {string} description the general description for this error
|
|
57
60
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
58
61
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
59
62
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -71,6 +74,7 @@ export declare class NotFoundError extends ProblemError {
|
|
|
71
74
|
* @summary SBOM test failed
|
|
72
75
|
* @category SbomTest
|
|
73
76
|
* @param {string} details the specific details that causes this error
|
|
77
|
+
* @param {string} description the general description for this error
|
|
74
78
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
75
79
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
76
80
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -88,6 +92,7 @@ export declare class FailedTestError extends ProblemError {
|
|
|
88
92
|
* @summary SBOM test results still pending
|
|
89
93
|
* @category SbomTest
|
|
90
94
|
* @param {string} details the specific details that causes this error
|
|
95
|
+
* @param {string} description the general description for this error
|
|
91
96
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
92
97
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
93
98
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -108,6 +113,7 @@ export declare class PendingTestError extends ProblemError {
|
|
|
108
113
|
* @summary Unknown SBOM format
|
|
109
114
|
* @category SbomTest
|
|
110
115
|
* @param {string} details the specific details that causes this error
|
|
116
|
+
* @param {string} description the general description for this error
|
|
111
117
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
112
118
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
113
119
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -126,6 +132,7 @@ export declare class FormatUnknownError extends ProblemError {
|
|
|
126
132
|
* @summary Unable to process SBOM input
|
|
127
133
|
* @category SbomTest
|
|
128
134
|
* @param {string} details the specific details that causes this error
|
|
135
|
+
* @param {string} description the general description for this error
|
|
129
136
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
130
137
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
131
138
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -144,6 +151,7 @@ export declare class UnprocessableInputError extends ProblemError {
|
|
|
144
151
|
* @summary SBOM format not supported
|
|
145
152
|
* @category SbomTest
|
|
146
153
|
* @param {string} details the specific details that causes this error
|
|
154
|
+
* @param {string} description the general description for this error
|
|
147
155
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
148
156
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
149
157
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -159,6 +167,7 @@ export declare class FormatNotSupportedError extends ProblemError {
|
|
|
159
167
|
* @summary SBOM analysis failed
|
|
160
168
|
* @category SbomTest
|
|
161
169
|
* @param {string} details the specific details that causes this error
|
|
170
|
+
* @param {string} description the general description for this error
|
|
162
171
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
163
172
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
164
173
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -174,6 +183,7 @@ export declare class ConversionFailedError extends ProblemError {
|
|
|
174
183
|
* @summary No testable packages found
|
|
175
184
|
* @category SbomTest
|
|
176
185
|
* @param {string} details the specific details that causes this error
|
|
186
|
+
* @param {string} description the general description for this error
|
|
177
187
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
178
188
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
179
189
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -25,6 +25,7 @@ const problem_error_1 = require("../problem-error");
|
|
|
25
25
|
* @summary SBOM test error
|
|
26
26
|
* @category SbomTest
|
|
27
27
|
* @param {string} details the specific details that causes this error
|
|
28
|
+
* @param {string} description the general description for this error
|
|
28
29
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
29
30
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
30
31
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -36,6 +37,7 @@ class InternalError extends problem_error_1.ProblemError {
|
|
|
36
37
|
title: 'SBOM test error',
|
|
37
38
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0001',
|
|
38
39
|
status: 500,
|
|
40
|
+
description: `An unexpected error occurred. Review the request, then try again. If the error persists, contact Snyk Support.`,
|
|
39
41
|
errorCode: 'SNYK-SBOM-0001',
|
|
40
42
|
level: 'error',
|
|
41
43
|
classification: types_1.Classification.UNEXPECTED,
|
|
@@ -55,6 +57,7 @@ exports.InternalError = InternalError;
|
|
|
55
57
|
* @summary Organization ID mismatch
|
|
56
58
|
* @category SbomTest
|
|
57
59
|
* @param {string} details the specific details that causes this error
|
|
60
|
+
* @param {string} description the general description for this error
|
|
58
61
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
59
62
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
60
63
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -66,6 +69,10 @@ class OrgIDMismatchError extends problem_error_1.ProblemError {
|
|
|
66
69
|
title: 'Organization ID mismatch',
|
|
67
70
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0002',
|
|
68
71
|
status: 404,
|
|
72
|
+
description: `The requested organization ID does not match the owner of the SBOM test ID.
|
|
73
|
+
|
|
74
|
+
This error occurs when the supplied organization ID is different to the one used when creating an SBOM test run.
|
|
75
|
+
Ensure the organization ID used to make the request is the same as the the organization ID used to create the SBOM test.`,
|
|
69
76
|
errorCode: 'SNYK-SBOM-0002',
|
|
70
77
|
level: 'warn',
|
|
71
78
|
classification: types_1.Classification.ACTIONABLE,
|
|
@@ -82,6 +89,7 @@ exports.OrgIDMismatchError = OrgIDMismatchError;
|
|
|
82
89
|
* @summary Unable to find SBOM test
|
|
83
90
|
* @category SbomTest
|
|
84
91
|
* @param {string} details the specific details that causes this error
|
|
92
|
+
* @param {string} description the general description for this error
|
|
85
93
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
86
94
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
87
95
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -93,6 +101,7 @@ class NotFoundError extends problem_error_1.ProblemError {
|
|
|
93
101
|
title: 'Unable to find SBOM test',
|
|
94
102
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0003',
|
|
95
103
|
status: 404,
|
|
104
|
+
description: `Snyk was unable to find the requested SBOM test.`,
|
|
96
105
|
errorCode: 'SNYK-SBOM-0003',
|
|
97
106
|
level: 'warn',
|
|
98
107
|
classification: types_1.Classification.UNEXPECTED,
|
|
@@ -111,6 +120,7 @@ exports.NotFoundError = NotFoundError;
|
|
|
111
120
|
* @summary SBOM test failed
|
|
112
121
|
* @category SbomTest
|
|
113
122
|
* @param {string} details the specific details that causes this error
|
|
123
|
+
* @param {string} description the general description for this error
|
|
114
124
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
115
125
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
116
126
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -122,6 +132,9 @@ class FailedTestError extends problem_error_1.ProblemError {
|
|
|
122
132
|
title: 'SBOM test failed',
|
|
123
133
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0004',
|
|
124
134
|
status: 404,
|
|
135
|
+
description: `The SBOM test failed and does not have any results.
|
|
136
|
+
|
|
137
|
+
This error occurs when results for a failed SBOM test are being requested.`,
|
|
125
138
|
errorCode: 'SNYK-SBOM-0004',
|
|
126
139
|
level: 'warn',
|
|
127
140
|
classification: types_1.Classification.UNSUPPORTED,
|
|
@@ -140,6 +153,7 @@ exports.FailedTestError = FailedTestError;
|
|
|
140
153
|
* @summary SBOM test results still pending
|
|
141
154
|
* @category SbomTest
|
|
142
155
|
* @param {string} details the specific details that causes this error
|
|
156
|
+
* @param {string} description the general description for this error
|
|
143
157
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
144
158
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
145
159
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -151,6 +165,9 @@ class PendingTestError extends problem_error_1.ProblemError {
|
|
|
151
165
|
title: 'SBOM test results still pending',
|
|
152
166
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0005',
|
|
153
167
|
status: 404,
|
|
168
|
+
description: `The SBOM test is still processing and does not have any results yet.
|
|
169
|
+
|
|
170
|
+
This error occurs when the results for an SBOM test have been requested, but the SBOM test is still being processed.`,
|
|
154
171
|
errorCode: 'SNYK-SBOM-0005',
|
|
155
172
|
level: 'warn',
|
|
156
173
|
classification: types_1.Classification.UNSUPPORTED,
|
|
@@ -172,6 +189,7 @@ exports.PendingTestError = PendingTestError;
|
|
|
172
189
|
* @summary Unknown SBOM format
|
|
173
190
|
* @category SbomTest
|
|
174
191
|
* @param {string} details the specific details that causes this error
|
|
192
|
+
* @param {string} description the general description for this error
|
|
175
193
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
176
194
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
177
195
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -183,6 +201,9 @@ class FormatUnknownError extends problem_error_1.ProblemError {
|
|
|
183
201
|
title: 'Unknown SBOM format',
|
|
184
202
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0006',
|
|
185
203
|
status: 422,
|
|
204
|
+
description: `Snyk does not recognize the SBOM file format.
|
|
205
|
+
|
|
206
|
+
Provide an SBOM document with a supported format.`,
|
|
186
207
|
errorCode: 'SNYK-SBOM-0006',
|
|
187
208
|
level: 'warn',
|
|
188
209
|
classification: types_1.Classification.UNSUPPORTED,
|
|
@@ -204,6 +225,7 @@ exports.FormatUnknownError = FormatUnknownError;
|
|
|
204
225
|
* @summary Unable to process SBOM input
|
|
205
226
|
* @category SbomTest
|
|
206
227
|
* @param {string} details the specific details that causes this error
|
|
228
|
+
* @param {string} description the general description for this error
|
|
207
229
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
208
230
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
209
231
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -215,6 +237,7 @@ class UnprocessableInputError extends problem_error_1.ProblemError {
|
|
|
215
237
|
title: 'Unable to process SBOM input',
|
|
216
238
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0007',
|
|
217
239
|
status: 422,
|
|
240
|
+
description: `Snyk is unable to decode the SBOM file. Provide a valid SBOM document and try again.`,
|
|
218
241
|
errorCode: 'SNYK-SBOM-0007',
|
|
219
242
|
level: 'warn',
|
|
220
243
|
classification: types_1.Classification.UNSUPPORTED,
|
|
@@ -236,6 +259,7 @@ exports.UnprocessableInputError = UnprocessableInputError;
|
|
|
236
259
|
* @summary SBOM format not supported
|
|
237
260
|
* @category SbomTest
|
|
238
261
|
* @param {string} details the specific details that causes this error
|
|
262
|
+
* @param {string} description the general description for this error
|
|
239
263
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
240
264
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
241
265
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -247,6 +271,7 @@ class FormatNotSupportedError extends problem_error_1.ProblemError {
|
|
|
247
271
|
title: 'SBOM format not supported',
|
|
248
272
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0008',
|
|
249
273
|
status: 422,
|
|
274
|
+
description: `Provide a supported format of the SBOM document and try again.`,
|
|
250
275
|
errorCode: 'SNYK-SBOM-0008',
|
|
251
276
|
level: 'warn',
|
|
252
277
|
classification: types_1.Classification.UNSUPPORTED,
|
|
@@ -265,6 +290,7 @@ exports.FormatNotSupportedError = FormatNotSupportedError;
|
|
|
265
290
|
* @summary SBOM analysis failed
|
|
266
291
|
* @category SbomTest
|
|
267
292
|
* @param {string} details the specific details that causes this error
|
|
293
|
+
* @param {string} description the general description for this error
|
|
268
294
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
269
295
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
270
296
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -276,6 +302,7 @@ class ConversionFailedError extends problem_error_1.ProblemError {
|
|
|
276
302
|
title: 'SBOM analysis failed',
|
|
277
303
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0009',
|
|
278
304
|
status: 422,
|
|
305
|
+
description: `Snyk was unable to process the provided SBOM input and is unable to scan it for issues.`,
|
|
279
306
|
errorCode: 'SNYK-SBOM-0009',
|
|
280
307
|
level: 'warn',
|
|
281
308
|
classification: types_1.Classification.UNSUPPORTED,
|
|
@@ -292,6 +319,7 @@ exports.ConversionFailedError = ConversionFailedError;
|
|
|
292
319
|
* @summary No testable packages found
|
|
293
320
|
* @category SbomTest
|
|
294
321
|
* @param {string} details the specific details that causes this error
|
|
322
|
+
* @param {string} description the general description for this error
|
|
295
323
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
296
324
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
297
325
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -303,6 +331,7 @@ class NoTestablePackagesError extends problem_error_1.ProblemError {
|
|
|
303
331
|
title: 'No testable packages found',
|
|
304
332
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-sbom-0010',
|
|
305
333
|
status: 422,
|
|
334
|
+
description: `The SBOM document you provided does not contain any packages supported by Snyk vulnerability analysis, or it does not contain any package.`,
|
|
306
335
|
errorCode: 'SNYK-SBOM-0010',
|
|
307
336
|
level: 'warn',
|
|
308
337
|
classification: types_1.Classification.UNSUPPORTED,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SbomTest-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/SbomTest-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oCAA0C;AAC1C,oDAAgD;AAEhD
|
|
1
|
+
{"version":3,"file":"SbomTest-error-catalog.js","sourceRoot":"","sources":["../../../../../packages/error-catalog-nodejs-public/src/catalogs/SbomTest-error-catalog.ts"],"names":[],"mappings":";;;AAAA,oCAA0C;AAC1C,oDAAgD;AAEhD;;;;;;;;;;;;GAYG;AACH,MAAa,aAAc,SAAQ,4BAAY;IAC7C,YACI,OAAe,EACf,cAAoC,EACpC,KAAa,EACb,QAAiB,EACjB,IAAe;QAEjB,KAAK,CACH;YACE,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,kEAAkE;YACxE,MAAM,EAAE,GAAG;YACX,WAAW,EAAE,gHAAgH;YAC7H,SAAS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D,OAAO,kBAEL,KAAK,EAAE,EAAE,IACN,cAAc,GAEnB,KAAK,EACL,IAAI,CACL,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AA7BD,0DA6BC"}
|
|
@@ -21,6 +21,7 @@ import { ProblemError } from '../problem-error';
|
|
|
21
21
|
* @summary Service temporarily throttled
|
|
22
22
|
* @category Snyk
|
|
23
23
|
* @param {string} details the specific details that causes this error
|
|
24
|
+
* @param {string} description the general description for this error
|
|
24
25
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
25
26
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
26
27
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -39,6 +40,7 @@ export declare class TooManyRequestsError extends ProblemError {
|
|
|
39
40
|
* @summary Server error response
|
|
40
41
|
* @category Snyk
|
|
41
42
|
* @param {string} details the specific details that causes this error
|
|
43
|
+
* @param {string} description the general description for this error
|
|
42
44
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
43
45
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
44
46
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -54,6 +56,7 @@ export declare class NotImplementedError extends ProblemError {
|
|
|
54
56
|
* @summary Client request cannot be processed
|
|
55
57
|
* @category Snyk
|
|
56
58
|
* @param {string} details the specific details that causes this error
|
|
59
|
+
* @param {string} description the general description for this error
|
|
57
60
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
58
61
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
59
62
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -72,6 +75,7 @@ export declare class BadRequestError extends ProblemError {
|
|
|
72
75
|
* @summary Server communication error
|
|
73
76
|
* @category Snyk
|
|
74
77
|
* @param {string} details the specific details that causes this error
|
|
78
|
+
* @param {string} description the general description for this error
|
|
75
79
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
76
80
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
77
81
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -87,6 +91,7 @@ export declare class TimeoutError extends ProblemError {
|
|
|
87
91
|
* @summary Authentication error
|
|
88
92
|
* @category Snyk
|
|
89
93
|
* @param {string} details the specific details that causes this error
|
|
94
|
+
* @param {string} description the general description for this error
|
|
90
95
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
91
96
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
92
97
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -107,6 +112,7 @@ export declare class UnauthorisedError extends ProblemError {
|
|
|
107
112
|
* @summary Test limit reached
|
|
108
113
|
* @category Snyk
|
|
109
114
|
* @param {string} details the specific details that causes this error
|
|
115
|
+
* @param {string} description the general description for this error
|
|
110
116
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
111
117
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
112
118
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -131,6 +137,7 @@ export declare class TestLimitReachedError extends ProblemError {
|
|
|
131
137
|
* @summary Organization is not part of a group
|
|
132
138
|
* @category Snyk
|
|
133
139
|
* @param {string} details the specific details that causes this error
|
|
140
|
+
* @param {string} description the general description for this error
|
|
134
141
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
135
142
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
136
143
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -149,6 +156,7 @@ export declare class TagsForOrganizationWithoutGroupError extends ProblemError {
|
|
|
149
156
|
* @summary Request not fulfilled due to server error
|
|
150
157
|
* @category Snyk
|
|
151
158
|
* @param {string} details the specific details that causes this error
|
|
159
|
+
* @param {string} description the general description for this error
|
|
152
160
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
153
161
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
154
162
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -25,6 +25,7 @@ const problem_error_1 = require("../problem-error");
|
|
|
25
25
|
* @summary Service temporarily throttled
|
|
26
26
|
* @category Snyk
|
|
27
27
|
* @param {string} details the specific details that causes this error
|
|
28
|
+
* @param {string} description the general description for this error
|
|
28
29
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
29
30
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
30
31
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -36,6 +37,7 @@ class TooManyRequestsError extends problem_error_1.ProblemError {
|
|
|
36
37
|
title: 'Service temporarily throttled',
|
|
37
38
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-0001',
|
|
38
39
|
status: 429,
|
|
40
|
+
description: `The request rate limit has been exceeded. Wait a few minutes, then try again.`,
|
|
39
41
|
errorCode: 'SNYK-0001',
|
|
40
42
|
level: 'warn',
|
|
41
43
|
classification: types_1.Classification.ACTIONABLE,
|
|
@@ -55,6 +57,7 @@ exports.TooManyRequestsError = TooManyRequestsError;
|
|
|
55
57
|
* @summary Server error response
|
|
56
58
|
* @category Snyk
|
|
57
59
|
* @param {string} details the specific details that causes this error
|
|
60
|
+
* @param {string} description the general description for this error
|
|
58
61
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
59
62
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
60
63
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -66,6 +69,7 @@ class NotImplementedError extends problem_error_1.ProblemError {
|
|
|
66
69
|
title: 'Server error response',
|
|
67
70
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-0002',
|
|
68
71
|
status: 501,
|
|
72
|
+
description: `The server doesn't recognize the request method, or it cannot fulfill it. Review the request and try again.`,
|
|
69
73
|
errorCode: 'SNYK-0002',
|
|
70
74
|
level: 'error',
|
|
71
75
|
classification: types_1.Classification.UNSUPPORTED,
|
|
@@ -84,6 +88,7 @@ exports.NotImplementedError = NotImplementedError;
|
|
|
84
88
|
* @summary Client request cannot be processed
|
|
85
89
|
* @category Snyk
|
|
86
90
|
* @param {string} details the specific details that causes this error
|
|
91
|
+
* @param {string} description the general description for this error
|
|
87
92
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
88
93
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
89
94
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -95,6 +100,7 @@ class BadRequestError extends problem_error_1.ProblemError {
|
|
|
95
100
|
title: 'Client request cannot be processed',
|
|
96
101
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-0003',
|
|
97
102
|
status: 400,
|
|
103
|
+
description: `The server cannot process the request due to a client error, such as malformed request syntax, size too large, invalid request message framing, or deceptive request routing. Review the request and try again.`,
|
|
98
104
|
errorCode: 'SNYK-0003',
|
|
99
105
|
level: 'error',
|
|
100
106
|
classification: types_1.Classification.ACTIONABLE,
|
|
@@ -114,6 +120,7 @@ exports.BadRequestError = BadRequestError;
|
|
|
114
120
|
* @summary Server communication error
|
|
115
121
|
* @category Snyk
|
|
116
122
|
* @param {string} details the specific details that causes this error
|
|
123
|
+
* @param {string} description the general description for this error
|
|
117
124
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
118
125
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
119
126
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -125,6 +132,7 @@ class TimeoutError extends problem_error_1.ProblemError {
|
|
|
125
132
|
title: 'Server communication error',
|
|
126
133
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-0004',
|
|
127
134
|
status: 504,
|
|
135
|
+
description: `The server timed out during the request. Check Snyk status, then try again.`,
|
|
128
136
|
errorCode: 'SNYK-0004',
|
|
129
137
|
level: 'error',
|
|
130
138
|
classification: types_1.Classification.UNEXPECTED,
|
|
@@ -143,6 +151,7 @@ exports.TimeoutError = TimeoutError;
|
|
|
143
151
|
* @summary Authentication error
|
|
144
152
|
* @category Snyk
|
|
145
153
|
* @param {string} details the specific details that causes this error
|
|
154
|
+
* @param {string} description the general description for this error
|
|
146
155
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
147
156
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
148
157
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -154,6 +163,7 @@ class UnauthorisedError extends problem_error_1.ProblemError {
|
|
|
154
163
|
title: 'Authentication error',
|
|
155
164
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-0005',
|
|
156
165
|
status: 401,
|
|
166
|
+
description: `Authentication credentials not recognized, or user access is not provisioned. Revise credentials and try again, or request access from your Snyk administrator.`,
|
|
157
167
|
errorCode: 'SNYK-0005',
|
|
158
168
|
level: 'error',
|
|
159
169
|
classification: types_1.Classification.ACTIONABLE,
|
|
@@ -175,6 +185,7 @@ exports.UnauthorisedError = UnauthorisedError;
|
|
|
175
185
|
* @summary Test limit reached
|
|
176
186
|
* @category Snyk
|
|
177
187
|
* @param {string} details the specific details that causes this error
|
|
188
|
+
* @param {string} description the general description for this error
|
|
178
189
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
179
190
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
180
191
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -186,6 +197,7 @@ class TestLimitReachedError extends problem_error_1.ProblemError {
|
|
|
186
197
|
title: 'Test limit reached',
|
|
187
198
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-0006',
|
|
188
199
|
status: 429,
|
|
200
|
+
description: `You have reached the maximum number of tests in your Snyk plan. This causes Snyk tests on PRs and CLI to fail. Deactivate Snyk Test on your Project or upgrade your Snyk plan.`,
|
|
189
201
|
errorCode: 'SNYK-0006',
|
|
190
202
|
level: 'error',
|
|
191
203
|
classification: types_1.Classification.ACTIONABLE,
|
|
@@ -215,6 +227,7 @@ exports.TestLimitReachedError = TestLimitReachedError;
|
|
|
215
227
|
* @summary Organization is not part of a group
|
|
216
228
|
* @category Snyk
|
|
217
229
|
* @param {string} details the specific details that causes this error
|
|
230
|
+
* @param {string} description the general description for this error
|
|
218
231
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
219
232
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
220
233
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -226,6 +239,13 @@ class TagsForOrganizationWithoutGroupError extends problem_error_1.ProblemError
|
|
|
226
239
|
title: 'Organization is not part of a group',
|
|
227
240
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-0007',
|
|
228
241
|
status: 422,
|
|
242
|
+
description: `This error occures when trying to add tags to Organizations that that are part of a Group.
|
|
243
|
+
|
|
244
|
+
Verify with your Group Admin if the Organization should be in a Group.
|
|
245
|
+
|
|
246
|
+
If you have more than one Organization, you can set the Organization with which new Projects should be associated by running \`snyk config set org=ORG_ID\`.
|
|
247
|
+
|
|
248
|
+
If you want to override this global configuration for individual runs of snyk monitor, \`run snyk test --org=ORG_ID\` or \`snyk monitor --org=ORG_ID\`.`,
|
|
229
249
|
errorCode: 'SNYK-0007',
|
|
230
250
|
level: 'error',
|
|
231
251
|
classification: types_1.Classification.ACTIONABLE,
|
|
@@ -247,6 +267,7 @@ exports.TagsForOrganizationWithoutGroupError = TagsForOrganizationWithoutGroupEr
|
|
|
247
267
|
* @summary Request not fulfilled due to server error
|
|
248
268
|
* @category Snyk
|
|
249
269
|
* @param {string} details the specific details that causes this error
|
|
270
|
+
* @param {string} description the general description for this error
|
|
250
271
|
* @param {Classification} classification the error classification determining if the error is user-actionable or not
|
|
251
272
|
* @param {Record<string, any>} [additionalData] a collection of relevant data specific to this error
|
|
252
273
|
* @param {Error} [cause] the `Error` type that caused this error to be thrown
|
|
@@ -258,6 +279,7 @@ class ServerError extends problem_error_1.ProblemError {
|
|
|
258
279
|
title: 'Request not fulfilled due to server error',
|
|
259
280
|
type: 'https://docs.snyk.io/scan-with-snyk/error-catalog#snyk-9999',
|
|
260
281
|
status: 500,
|
|
282
|
+
description: `The server cannot process the request due to an unexpected error. Check Snyk status, then try again.`,
|
|
261
283
|
errorCode: 'SNYK-9999',
|
|
262
284
|
level: 'error',
|
|
263
285
|
classification: types_1.Classification.UNEXPECTED,
|