extensions icon indicating copy to clipboard operation
extensions copied to clipboard

firestore-translate-text - Error "User Rate Limit Exceeded"

Open sreenath-n opened this issue 2 years ago • 2 comments

Getting the error "User Rate Limit Exceeded" when translating to 14 different languages at once:

LOCATION=asia-south1
LANGUAGES=bn,en,gu,hi,kn,ml,mr,ne,or,pa,sd,ta,te,ur
COLLECTION_PATH=translations
INPUT_FIELD_NAME=input
OUTPUT_FIELD_NAME=output

Functions Log:

Error when translating string: 'Cat' into language(s): 'hi' ApiError: User Rate Limit Exceeded
    at new ApiError (/workspace/node_modules/@google-cloud/common/build/src/util.js:58:15)
    at Util.parseHttpRespBody (/workspace/node_modules/@google-cloud/common/build/src/util.js:193:38)
    at Util.handleResp (/workspace/node_modules/@google-cloud/common/build/src/util.js:134:117)
    at /workspace/node_modules/@google-cloud/common/build/src/util.js:432:22
    at onResponse (/workspace/node_modules/retry-request/index.js:228:7)
    at /workspace/node_modules/teeny-request/build/src/index.js:233:13
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  code: 403,
  errors: [
    {
      message: 'User Rate Limit Exceeded',
      domain: 'usageLimits',
      reason: 'userRateLimitExceeded'
    }
  ],

sreenath-n avatar Jul 07 '22 14:07 sreenath-n

Thanks @sreenath-n

I've added to our project board for investigation.

dackers86 avatar Jul 07 '22 15:07 dackers86

Hi @sreenath-n, Thank you for reporting this issue.

I couldn't reproduce the error, everything seems to be working properly. The User Rate Limit Exceeded error is thrown by google translate API if you exceeded the per minute quota. Can you check and make confirm if it is.

yamankatby avatar Jul 18 '22 06:07 yamankatby

Closing as stale, if the issue is still happening, we can reopen.

cabljac avatar Nov 15 '23 15:11 cabljac

I also got Rate Limit Exceeded. My question is what kind of rate exceeded? Is it write requests per minute or upload data in Kbytes per minute exceeded? I use the free program now.

sc4321 avatar Dec 28 '23 20:12 sc4321