I2 WebService broken? 'Problem contacting service'
6 years 10 months ago #2726
by bazz_boyy
I2 WebService broken? 'Problem contacting service' was created by bazz_boyy
Howdy,
I have been getting this error this morning after successfully making auto-translations yesterday:
There was a problem contacting the WebService. Please try again later
<!DOCTYPE html><html><head><link rel="shortcut icon" href="//ssl.gstatic.com/docs/script/images/favicon.ico"><title>Error</title><style type="text/css">body {background-color: #fff; margin: 0; padding: 0;}.errorMessage {font-family: Arial,sans-serif; font-size: 12pt; font-weight: bold; line-height: 150%; padding-top: 25px;}</style></head><body style="margin:20px"><div><img alt="Google Apps Script" src="//ssl.gstatic.com/docs/script/images/logo.png"></div><div style="text-align:center;font-family:monospace;margin:50px auto 0;max-width:600px">Service invoked too many times for one day: translate. (line 45, file "Translate", project "Copy of I2GoogleWebServiceV5")</div></body></html>
UnityEngine.Debug:LogError(Object)
I2.Loc.LocalizationEditor:ShowMessage(String, MessageType, Boolean) (at Assets/I2/Localization/Scripts/Editor/Localization/LocalizationEditor.cs:215)
I2.Loc.LocalizationEditor:ShowError(String, Boolean) (at Assets/I2/Localization/Scripts/Editor/Localization/LocalizationEditor.cs:200)
I2.Loc.<OnGUI_Keys_Languages>c__AnonStorey1:<>m__0(String, String) (at Assets/I2/Localization/Scripts/Editor/Localization/LocalizationEditor_Terms_Description.cs:255)
I2.Loc.<Translate>c__AnonStorey1:<>m__0(Dictionary`2, String) (at Assets/I2/Localization/Scripts/Google/GoogleTranslation.cs:52)
I2.Loc.<WaitForTranslation>c__Iterator0:MoveNext() (at Assets/I2/Localization/Scripts/Google/GoogleTranslation_Post.cs:115)
I2.Loc.<Start>c__AnonStorey1:<>m__0() (at Assets/I2/Localization/Scripts/Utils/CoroutineManager.cs:39)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
Does anyone have a solution?
I have been getting this error this morning after successfully making auto-translations yesterday:
There was a problem contacting the WebService. Please try again later
<!DOCTYPE html><html><head><link rel="shortcut icon" href="//ssl.gstatic.com/docs/script/images/favicon.ico"><title>Error</title><style type="text/css">body {background-color: #fff; margin: 0; padding: 0;}.errorMessage {font-family: Arial,sans-serif; font-size: 12pt; font-weight: bold; line-height: 150%; padding-top: 25px;}</style></head><body style="margin:20px"><div><img alt="Google Apps Script" src="//ssl.gstatic.com/docs/script/images/logo.png"></div><div style="text-align:center;font-family:monospace;margin:50px auto 0;max-width:600px">Service invoked too many times for one day: translate. (line 45, file "Translate", project "Copy of I2GoogleWebServiceV5")</div></body></html>
UnityEngine.Debug:LogError(Object)
I2.Loc.LocalizationEditor:ShowMessage(String, MessageType, Boolean) (at Assets/I2/Localization/Scripts/Editor/Localization/LocalizationEditor.cs:215)
I2.Loc.LocalizationEditor:ShowError(String, Boolean) (at Assets/I2/Localization/Scripts/Editor/Localization/LocalizationEditor.cs:200)
I2.Loc.<OnGUI_Keys_Languages>c__AnonStorey1:<>m__0(String, String) (at Assets/I2/Localization/Scripts/Editor/Localization/LocalizationEditor_Terms_Description.cs:255)
I2.Loc.<Translate>c__AnonStorey1:<>m__0(Dictionary`2, String) (at Assets/I2/Localization/Scripts/Google/GoogleTranslation.cs:52)
I2.Loc.<WaitForTranslation>c__Iterator0:MoveNext() (at Assets/I2/Localization/Scripts/Google/GoogleTranslation_Post.cs:115)
I2.Loc.<Start>c__AnonStorey1:<>m__0() (at Assets/I2/Localization/Scripts/Utils/CoroutineManager.cs:39)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
Does anyone have a solution?
Please Log in or Create an account to join the conversation.
6 years 10 months ago #2727
by bazz_boyy
Replied by bazz_boyy on topic I2 WebService broken? 'Problem contacting service'
oooop I didnt read... "Service invoked too many times for one day: translate."
I suppose I'll have to wait...?
I suppose I'll have to wait...?
Please Log in or Create an account to join the conversation.
6 years 10 months ago #2728
by Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
Replied by Frank on topic I2 WebService broken? 'Problem contacting service'
I have to refactor how that error shows to make it more understandable.
The problem is that the Free Google Translate tier can only handle so many translations per hour/min. So, when translating large databases or querying too often, it gets to the limit.
You are still able to use the WebService to Import/Export from google, but no translation, sorry!
One way to deal with this without having to wait, its to Export your language source to a google Spreadsheet, and place a "=GOOGLETRANSLATE(.....)" formula in the column of the language your want to translate. That will get all the translations without dealing with the Translate limit.
Then, Import back to Unity, and you will get everything translated.
Once I release this next version I will move into tweaking the translate to avoid this limit, by actually using the batching mode. In the current I2L I implemented a batch mode for translations, but I haven't still used it for the editor (just for the runtime).
Hope that helps,
Frank
The problem is that the Free Google Translate tier can only handle so many translations per hour/min. So, when translating large databases or querying too often, it gets to the limit.
You are still able to use the WebService to Import/Export from google, but no translation, sorry!
One way to deal with this without having to wait, its to Export your language source to a google Spreadsheet, and place a "=GOOGLETRANSLATE(.....)" formula in the column of the language your want to translate. That will get all the translations without dealing with the Translate limit.
Then, Import back to Unity, and you will get everything translated.
Once I release this next version I will move into tweaking the translate to avoid this limit, by actually using the batching mode. In the current I2L I implemented a batch mode for translations, but I haven't still used it for the editor (just for the runtime).
Hope that helps,
Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
To get the betas as soon as they are ready,
check this out
Please Log in or Create an account to join the conversation.
6 years 10 months ago #2729
by bazz_boyy
Replied by bazz_boyy on topic I2 WebService broken? 'Problem contacting service'
Thanks Frank, It probably would have also helped if I used the Language>Translate instead of translating every term individually :,D
Please Log in or Create an account to join the conversation.
Time to create page: 0.159 seconds