Welcome, Guest
Username: Password: Remember me

TOPIC: Send failed since rewinding of the data stream fai

Send failed since rewinding of the data stream fai 6 days 14 hours ago #2613

  • fidi
  • fidi's Avatar
  • Offline
  • New Member
  • Posts: 4
  • Karma: 0
Hello, i have Unity 5.6.3p3 and the last plugin version 2.8.1 f1 installed. i have installed the google web service url an verified ok and google drive, too.
When i press the translate all button on term i receive the "Send failed since rewinding of the data stream failed" message.

Thanks.

Federico


The administrator has disabled public write access.

Send failed since rewinding of the data stream fai 6 days 14 hours ago #2614

  • fidi
  • fidi's Avatar
  • Offline
  • New Member
  • Posts: 4
  • Karma: 0
I'm sorry, in the moment I sent the question I did not see that another had the same problem.
I wiil try that solution.
The administrator has disabled public write access.

Send failed since rewinding of the data stream fai 6 days 13 hours ago #2615

  • fidi
  • fidi's Avatar
  • Offline
  • New Member
  • Posts: 4
  • Karma: 0
I changed the file Assets\I2\Localization\Scripts\Editor\Localization\LocalizationEditor_Terms_Description.cs line 181
var termType = eTermType.Text;
                        if (localizeCmp!=null && localizeCmp.mLocalizeTarget != null)
                        {
                            termType = IsPrimaryKey ? localizeCmp.mLocalizeTarget.GetPrimaryTermType(localizeCmp)
                                                    : localizeCmp.mLocalizeTarget.GetSecondaryTermType(localizeCmp);
                        }

The problem still persist..
The administrator has disabled public write access.

Send failed since rewinding of the data stream fai 6 days 7 hours ago #2617

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 915
  • Thank you received: 196
  • Karma: 58
Hi,
That was the fix for the Add Terms to Source not working when clicking it from the LanguageSource instead of from the Localize component.

The fix for the "Send failed since rewinding of the data stream failed" is the following:

change in file assets\i2\localization\scripts\google\googletranslation_post.cs line 122
from
                if (errorMsg.Contains("necessary data rewind wasn't possible"))

into
                if (errorMsg.Contains("rewind"))

The problem is that in different versions of unity the rewind message is different. So, I'm fixing it by making any error related to rewinding, go an fallback to a GET method.

Hope that help,
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
The administrator has disabled public write access.

Send failed since rewinding of the data stream fai 6 days 4 hours ago #2619

  • fidi
  • fidi's Avatar
  • Offline
  • New Member
  • Posts: 4
  • Karma: 0
Thanks, that worked!

Regards.
The administrator has disabled public write access.
Time to create page: 0.261 seconds
Colors