Skip to content

security_center_snippets: client can list all findings failed #3117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
flaky-bot bot opened this issue Apr 9, 2023 · 3 comments
Closed

security_center_snippets: client can list all findings failed #3117

flaky-bot bot opened this issue Apr 9, 2023 · 3 comments
Assignees
Labels
api: securitycenter Issues related to the Security Command Center API. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p2 Moderately-important priority. Fix may not be included in next release. samples Issues that are directly related to samples. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@flaky-bot
Copy link

flaky-bot bot commented Apr 9, 2023

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: b240cb9
buildURL: https://github.com/GoogleCloudPlatform/nodejs-docs-samples/actions/runs/4647764266
status: failed

Test output
spawnSync /bin/sh ENOBUFS
Error: spawnSync /bin/sh ENOBUFS
    at Object.spawnSync (node:internal/child_process:1119:20)
    at spawnSync (node:child_process:847:24)
    at execSync (node:child_process:927:15)
    at exec (system-test/v1/findings.test.js:21:21)
    at Context. (system-test/v1/findings.test.js:148:20)
    at processImmediate (node:internal/timers:466:21)
@flaky-bot flaky-bot bot added flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Apr 9, 2023
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Apr 9, 2023
@rsamborski rsamborski assigned Sita04 and unassigned rsamborski Apr 11, 2023
@rsamborski
Copy link
Member

@Sita04 PTAL

@kweinmeister kweinmeister added the api: securitycenter Issues related to the Security Command Center API. label Apr 15, 2023
@flaky-bot
Copy link
Author

flaky-bot bot commented Apr 16, 2023

commit: 1064b27
buildURL: https://github.com/GoogleCloudPlatform/nodejs-docs-samples/actions/runs/4710457359
status: failed

Test output
Command failed: node v1/listAllFindings.js 1081635000895
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: 8 RESOURCE_EXHAUSTED: Quota exceeded for quota metric 'Read Requests' and limit 'Read Requests per minute' of service 'securitycenter.googleapis.com' for consumer 'project_number:1046198160504'.
at callErrorFromStatus (/home/runner/work/nodejs-docs-samples/nodejs-docs-samples/security-center/snippets/node_modules/@grpc/grpc-js/build/src/call.js:31:19)
at Object.onReceiveStatus (/home/runner/work/nodejs-docs-samples/nodejs-docs-samples/security-center/snippets/node_modules/@grpc/grpc-js/build/src/client.js:192:76)
at Object.onReceiveStatus (/home/runner/work/nodejs-docs-samples/nodejs-docs-samples/security-center/snippets/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:360:141)
at Object.onReceiveStatus (/home/runner/work/nodejs-docs-samples/nodejs-docs-samples/security-center/snippets/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:323:181)
at /home/runner/work/nodejs-docs-samples/nodejs-docs-samples/security-center/snippets/node_modules/@grpc/grpc-js/build/src/resolving-call.js:94:78
at processTicksAndRejections (node:internal/process/task_queues:78:11)
for call at
at ServiceClientImpl.makeUnaryRequest (/home/runner/work/nodejs-docs-samples/nodejs-docs-samples/security-center/snippets/node_modules/@grpc/grpc-js/build/src/client.js:160:34)
at ServiceClientImpl. (/home/runner/work/nodejs-docs-samples/nodejs-docs-samples/security-center/snippets/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)
at /home/runner/work/nodejs-docs-samples/nodejs-docs-samples/security-center/snippets/node_modules/@google-cloud/security-center/build/src/v1/security_center_client.js:319:29
at wrappedCall (/home/runner/work/nodejs-docs-samples/nodejs-docs-samples/security-center/snippets/node_modules/google-gax/build/src/paginationCalls/pagedApiCaller.js:86:20)
at /home/runner/work/nodejs-docs-samples/nodejs-docs-samples/security-center/snippets/node_modules/google-gax/build/src/normalCalls/timeout.js:44:16
at repeat (/home/runner/work/nodejs-docs-samples/nodejs-docs-samples/security-center/snippets/node_modules/google-gax/build/src/normalCalls/retries.js:80:25)
at Immediate. (/home/runner/work/nodejs-docs-samples/nodejs-docs-samples/security-center/snippets/node_modules/google-gax/build/src/normalCalls/retries.js:118:13)
at processImmediate (node:internal/timers:468:21) {
code: 8,
details: "Quota exceeded for quota metric 'Read Requests' and limit 'Read Requests per minute' of service 'securitycenter.googleapis.com' for consumer 'project_number:1046198160504'.",
metadata: Metadata {
internalRepr: Map(4) {
'grpc-server-stats-bin' => [
Buffer(10) [Uint8Array] [
0, 0, 148, 244, 29,
0, 0, 0, 0, 0
]
],
'google.rpc.errorinfo-bin' => [
Buffer(266) [Uint8Array] [
10, 19, 82, 65, 84, 69, 95, 76, 73, 77, 73, 84,
95, 69, 88, 67, 69, 69, 68, 69, 68, 18, 14, 103,
111, 111, 103, 108, 101, 97, 112, 105, 115, 46, 99, 111,
109, 26, 40, 10, 7, 115, 101, 114, 118, 105, 99, 101,
18, 29, 115, 101, 99, 117, 114, 105, 116, 121, 99, 101,
110, 116, 101, 114, 46, 103, 111, 111, 103, 108, 101, 97,
112, 105, 115, 46, 99, 111, 109, 26, 24, 10, 14, 113,
117, 111, 116, 97, 95, 108, 111, 99, 97, 116, 105, 111,
110, 18, 6, 103,
... 166 more items
]
],
'google.rpc.help-bin' => [
Buffer(94) [Uint8Array] [
10, 92, 10, 29, 82, 101, 113, 117, 101, 115, 116, 32,
97, 32, 104, 105, 103, 104, 101, 114, 32, 113, 117, 111,
116, 97, 32, 108, 105, 109, 105, 116, 46, 18, 59, 104,
116, 116, 112, 115, 58, 47, 47, 99, 108, 111, 117, 100,
46, 103, 111, 111, 103, 108, 101, 46, 99, 111, 109, 47,
100, 111, 99, 115, 47, 113, 117, 111, 116, 97, 35, 114,
101, 113, 117, 101, 115, 116, 105, 110, 103, 95, 104, 105,
103, 104, 101, 114, 95, 113, 117, 111, 116, 97
]
],
'grpc-status-details-bin' => [
Buffer(627) [Uint8Array] [
8, 8, 18, 172, 1, 81, 117, 111, 116, 97, 32, 101,
120, 99, 101, 101, 100, 101, 100, 32, 102, 111, 114, 32,
113, 117, 111, 116, 97, 32, 109, 101, 116, 114, 105, 99,
32, 39, 82, 101, 97, 100, 32, 82, 101, 113, 117, 101,
115, 116, 115, 39, 32, 97, 110, 100, 32, 108, 105, 109,
105, 116, 32, 39, 82, 101, 97, 100, 32, 82, 101, 113,
117, 101, 115, 116, 115, 32, 112, 101, 114, 32, 109, 105,
110, 117, 116, 101, 39, 32, 111, 102, 32, 115, 101, 114,
118, 105, 99, 101,
... 527 more items
]
]
},
options: {}
},
note: 'Exception occurred in retry method that was not classified as transient',
statusDetails: [
ErrorInfo {
metadata: {
service: 'securitycenter.googleapis.com',
quota_location: 'global',
quota_metric: 'securitycenter.googleapis.com/read_requests',
quota_limit_value: '1000',
quota_limit: 'apiReadQpmPerProject',
consumer: 'projects/1046198160504'
},
reason: 'RATE_LIMIT_EXCEEDED',
domain: 'googleapis.com'
},
Help {
links: [
Link {
description: 'Request a higher quota limit.',
url: 'https://cloud.google.com/docs/quota#requesting_higher_quota'
}
]
}
],
reason: 'RATE_LIMIT_EXCEEDED',
domain: 'googleapis.com',
errorInfoMetadata: {
service: 'securitycenter.googleapis.com',
quota_location: 'global',
quota_metric: 'securitycenter.googleapis.com/read_requests',
quota_limit_value: '1000',
quota_limit: 'apiReadQpmPerProject',
consumer: 'projects/1046198160504'
}
}

Error: Command failed: node v1/listAllFindings.js 1081635000895
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^

Error: 8 RESOURCE_EXHAUSTED: Quota exceeded for quota metric 'Read Requests' and limit 'Read Requests per minute' of service 'securitycenter.googleapis.com' for consumer 'project_number:1046198160504'.
at callErrorFromStatus (node_modules/@grpc/grpc-js/build/src/call.js:31:19)
at Object.onReceiveStatus (node_modules/@grpc/grpc-js/build/src/client.js:192:76)
at Object.onReceiveStatus (node_modules/@grpc/grpc-js/build/src/client-interceptors.js:360:141)
at Object.onReceiveStatus (node_modules/@grpc/grpc-js/build/src/client-interceptors.js:323:181)
at /home/runner/work/nodejs-docs-samples/nodejs-docs-samples/security-center/snippets/node_modules/@grpc/grpc-js/build/src/resolving-call.js:94:78
at processTicksAndRejections (node:internal/process/task_queues:78:11)
for call at
at ServiceClientImpl.makeUnaryRequest (node_modules/@grpc/grpc-js/build/src/client.js:160:34)
at ServiceClientImpl. (node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)
at /home/runner/work/nodejs-docs-samples/nodejs-docs-samples/security-center/snippets/node_modules/@google-cloud/security-center/build/src/v1/security_center_client.js:319:29
at wrappedCall (node_modules/google-gax/build/src/paginationCalls/pagedApiCaller.js:86:20)
at /home/runner/work/nodejs-docs-samples/nodejs-docs-samples/security-center/snippets/node_modules/google-gax/build/src/normalCalls/timeout.js:44:16
at repeat (node_modules/google-gax/build/src/normalCalls/retries.js:80:25)
at Immediate. (node_modules/google-gax/build/src/normalCalls/retries.js:118:13)
at processImmediate (node:internal/timers:468:21) {
code: 8,
details: "Quota exceeded for quota metric 'Read Requests' and limit 'Read Requests per minute' of service 'securitycenter.googleapis.com' for consumer 'project_number:1046198160504'.",
metadata: Metadata {
internalRepr: Map(4) {
'grpc-server-stats-bin' => [
Buffer(10) [Uint8Array] [
0, 0, 148, 244, 29,
0, 0, 0, 0, 0
]
],
'google.rpc.errorinfo-bin' => [
Buffer(266) [Uint8Array] [
10, 19, 82, 65, 84, 69, 95, 76, 73, 77, 73, 84,
95, 69, 88, 67, 69, 69, 68, 69, 68, 18, 14, 103,
111, 111, 103, 108, 101, 97, 112, 105, 115, 46, 99, 111,
109, 26, 40, 10, 7, 115, 101, 114, 118, 105, 99, 101,
18, 29, 115, 101, 99, 117, 114, 105, 116, 121, 99, 101,
110, 116, 101, 114, 46, 103, 111, 111, 103, 108, 101, 97,
112, 105, 115, 46, 99, 111, 109, 26, 24, 10, 14, 113,
117, 111, 116, 97, 95, 108, 111, 99, 97, 116, 105, 111,
110, 18, 6, 103,
... 166 more items
]
],
'google.rpc.help-bin' => [
Buffer(94) [Uint8Array] [
10, 92, 10, 29, 82, 101, 113, 117, 101, 115, 116, 32,
97, 32, 104, 105, 103, 104, 101, 114, 32, 113, 117, 111,
116, 97, 32, 108, 105, 109, 105, 116, 46, 18, 59, 104,
116, 116, 112, 115, 58, 47, 47, 99, 108, 111, 117, 100,
46, 103, 111, 111, 103, 108, 101, 46, 99, 111, 109, 47,
100, 111, 99, 115, 47, 113, 117, 111, 116, 97, 35, 114,
101, 113, 117, 101, 115, 116, 105, 110, 103, 95, 104, 105,
103, 104, 101, 114, 95, 113, 117, 111, 116, 97
]
],
'grpc-status-details-bin' => [
Buffer(627) [Uint8Array] [
8, 8, 18, 172, 1, 81, 117, 111, 116, 97, 32, 101,
120, 99, 101, 101, 100, 101, 100, 32, 102, 111, 114, 32,
113, 117, 111, 116, 97, 32, 109, 101, 116, 114, 105, 99,
32, 39, 82, 101, 97, 100, 32, 82, 101, 113, 117, 101,
115, 116, 115, 39, 32, 97, 110, 100, 32, 108, 105, 109,
105, 116, 32, 39, 82, 101, 97, 100, 32, 82, 101, 113,
117, 101, 115, 116, 115, 32, 112, 101, 114, 32, 109, 105,
110, 117, 116, 101, 39, 32, 111, 102, 32, 115, 101, 114,
118, 105, 99, 101,
... 527 more items
]
]
},
options: {}
},
note: 'Exception occurred in retry method that was not classified as transient',
statusDetails: [
ErrorInfo {
metadata: {
service: 'securitycenter.googleapis.com',
quota_location: 'global',
quota_metric: 'securitycenter.googleapis.com/read_requests',
quota_limit_value: '1000',
quota_limit: 'apiReadQpmPerProject',
consumer: 'projects/1046198160504'
},
reason: 'RATE_LIMIT_EXCEEDED',
domain: 'googleapis.com'
},
Help {
links: [
Link {
description: 'Request a higher quota limit.',
url: 'https://cloud.google.com/docs/quota#requesting_higher_quota'
}
]
}
],
reason: 'RATE_LIMIT_EXCEEDED',
domain: 'googleapis.com',
errorInfoMetadata: {
service: 'securitycenter.googleapis.com',
quota_location: 'global',
quota_metric: 'securitycenter.googleapis.com/read_requests',
quota_limit_value: '1000',
quota_limit: 'apiReadQpmPerProject',
consumer: 'projects/1046198160504'
}
}

at checkExecSyncError (node:child_process:861:11)
at execSync (node:child_process:932:15)
at exec (system-test/v1/findings.test.js:21:21)
at Context.<anonymous> (system-test/v1/findings.test.js:148:20)
at processImmediate (node:internal/timers:466:21)</pre></details>

@rsamborski
Copy link
Member

Duplicate of #3151

@rsamborski rsamborski marked this as a duplicate of #3151 Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: securitycenter Issues related to the Security Command Center API. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p2 Moderately-important priority. Fix may not be included in next release. samples Issues that are directly related to samples. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants