fkirc / attranslate

A command line tool for translating JSON, YAML, CSV, ARB, XML (via a CLI)
https://www.npmjs.com/package/attranslate
Other
336 stars 27 forks source link

Error: 8 RESOURCE_EXHAUSTED: Quota Error: RESOURCE_EXHAUSTED #243

Open MartinMajernicek opened 1 year ago

MartinMajernicek commented 1 year ago

I tried to translate content of XML file and ended with this error:

"8 RESOURCE_EXHAUSTED: Quota Error: RESOURCE_EXHAUSTED Quota exceeded for quota metric 'v2 and v3 general model characters' and limit 'v2 and v3 general model characters per minute' of service 'translate.googleapis.com' for consumer"

I have invoked 'google-translate' from 'pl' to 'sk' with 223559 inputs. Does anyone knows what should I do? Minute limite in GCloud is by default set to 6 000 000 char. per minute. If I want to increase limit, it has to be approved by service provider. If I should increase limit, to what number? Can anyone help? Thanks.

fkirc commented 1 year ago

Hi, Unfortunately I do not have much experience with GCloud, but one thing you might try is to split the XML into multiple smaller XMLs.

fkirc commented 1 year ago

Right now I am still not sure what exactly attranslate could do to circumvent such Google-errors. One thing I might try is to introduce delays between translations, but on the other hand I do not believe that users of attranslate want to wait more than a minute for their things to be translated..