Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Cannot catch RESOURCE_EXHAUSTED Quota exceeded error #523

Closed
hellovietduc opened this issue Mar 11, 2021 · 1 comment · Fixed by googleapis/gax-nodejs#1304
Closed

Cannot catch RESOURCE_EXHAUSTED Quota exceeded error #523

hellovietduc opened this issue Mar 11, 2021 · 1 comment · Fixed by googleapis/gax-nodejs#1304
Assignees
Labels
api: videointelligence Issues related to the googleapis/nodejs-video-intelligence API. 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.

Comments

@hellovietduc
Copy link

I'm trying out the Video Intelligence API, the quota is the default 60 reqs/min and 180 mins backend time. When I send more than the limit, I get this error:

Error: 8 RESOURCE_EXHAUSTED: Quota exceeded for quota metric 'Requests' and limit 'Requests per minute' of service 'videointelligence.googleapis.com' for consumer 'project_number:xxx'.
    at Object.callErrorFromStatus (/xxx/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
    at Object.onReceiveStatus (/xxx/node_modules/@grpc/grpc-js/build/src/client.js:176:52)
    at Object.onReceiveStatus (/xxx/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:336:141)
    at Object.onReceiveStatus (/xxx/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:299:181)
    at /xxx/node_modules/@grpc/grpc-js/build/src/call-stream.js:130:78
    at processTicksAndRejections (internal/process/task_queues.js:75:11)

But the weird thing is I can't catch it.

Environment details

  • OS: MacOS Big Sur 11.2.3
  • Node.js version: v14.15.1
  • npm version: 6.14.8
  • @google-cloud/video-intelligence version: 3.3.0

Steps to reproduce

try {
	const [operation] = await client.annotateVideo(request)
	operation.on('error', (err) => {
		// failed to catch here
	})
	const [operationResult] = await operation.promise()
	// ...
} catch (err) {
	// also failed to catch here
}
@product-auto-label product-auto-label bot added the api: videointelligence Issues related to the googleapis/nodejs-video-intelligence API. label Mar 11, 2021
@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Mar 12, 2021
@hellovietduc
Copy link
Author

Update: the error has a note field: Exception occurred in retry method that was not classified as transient

@bcoe bcoe added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Mar 12, 2021
@yoshi-automation yoshi-automation removed the triage me I really want to be triaged. label Mar 13, 2021
@alexander-fenster alexander-fenster added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p2 Moderately-important priority. Fix may not be included in next release. and removed type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Jul 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: videointelligence Issues related to the googleapis/nodejs-video-intelligence API. 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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants