artemave / translate_onhover

Browser translation extension
https://chrome.google.com/webstore/detail/aggiiclaiamajehmlfpkjmlbadmkledi
205 stars 61 forks source link

TransOver isn't working anymore. #40

Closed Jerzech closed 6 years ago

Jerzech commented 6 years ago

Hi, I really appreciate your work and I love this extension, but a couple days ago it's stopped working.I tried changing the setting, reinstalling and installing older versions but nothing helped.

artemave commented 6 years ago

Works for me. I have people occasionally complaining that it just stops working... Could you inspect "the background page" for me?

To do this, right click on TransOver button to see the details and once there click "inspect background page" (or however it is called in your language). Here is the screenshot: image

You should see a page that looks like this: image

We're looking for any red text among those log lines. If there is, it'll likely tell us more about the problem. Perhaps you could post here a screenshot?

Jerzech commented 6 years ago

Now it work from time to time and here are the errors: image

artemave commented 6 years ago

Wait... Is this Vivaldi browser? According to this Vivaldi had some problems with detectLanguage (the line of code that the error points to)

Jerzech commented 6 years ago

Yea it's, but i also tested it in chrome and it wasn't working there either. image

artemave commented 6 years ago

Right. Could you click on one of those triangles next to GET? Maybe they'll tell us more. Also, could you switch to the network tab and screenshot the headers of one of those failed requests?

503 status code means "service unavailable" (google translate API that is) which could be because you exceeded some sort of a rate limiter of theirs. We might be able to see it in the response headers.

Jerzech commented 6 years ago

I couldn't exceed any limiter because I installed TransOver in Chrome only to check if it is working there, unless this limit is shared between browsers. image

There are two different errors in the network tab: image

image

artemave commented 6 years ago

No clues there sadly.

The limit would apply to your ip, not the browser. So it wouldn't matter when you install Chrome. On that note, have you got a vpn account? It'd be interesting to test if the error still occurs once you're on vpn (as it changes your internet "location")

atrox3d commented 6 years ago

hello, i'm having the same problem. Clicking the links in the devtools backgroundpage https://translate.googleapis.com/translate_a/single?dt=t&dt=bd&client=gtx&q=keyword%20&sl=auto&tl=hu&dj=1&source=bubble# I get this message (in italian):

"I nostri sistemi hanno rilevato un traffico insolito proveniente dalla rete del tuo computer. Prova a inviare nuovamente la tua richiesta più tardi. A che cosa è dovuto?

Questa pagina viene visualizzata quando Google rileva automaticamente delle richieste provenienti dalla rete del tuo computer che apparentemente violano i Termini di servizio. Il blocco scadrà quando tali richieste saranno terminate.

Questo traffico potrebbe essere stato inviato da software dannoso, da un plug-in del browser o da script che invia richieste automatiche. Se condividi la connessione di rete, rivolgiti all'amministratore per assistenza: la responsabilità potrebbe essere di un altro computer che utilizza lo stesso indirizzo IP. Ulteriori informazioni

A volte questa pagina viene visualizzata se stai impiegando termini avanzati che vengono solitamente utilizzati dai robot o se stai inviando richieste molto rapidamente.

Indirizzo IP: ... Data: 2018-07-29T18:19:37Z URL: https://translate.googleapis.com/translate_a/single?dt=t&dt=bd&client=gtx&q=keyword%20&sl=auto&tl=hu&dj=1&source=bubble"

so, basically it says that they suspect unusual activity from my ip or network that may violate the TOS.

then I checked on the extension page and seems that i'm not the only one, and finally I got here

hope it helps

cheers

artemave commented 6 years ago

Thanks @atrox3d , this must be it. TransOver totally violates their TOS so fair enough. I think being on VPN might fix it for you.

artemave commented 6 years ago

Phone tethering might also do the trick :)

rziman commented 6 years ago

I've also experienced the issue described so far in this thread (as well as at the support tab at the chrome web store: https://chrome.google.com/webstore/detail/transover/aggiiclaiamajehmlfpkjmlbadmkledi/support?hl=en). Below are a few additional notes and an in-place alternative for anyone that needs an immediate workaround with similar functionality without setting up a VPN.

The issue seems to affect Google's own official Google Translate plugin (https://chrome.google.com/webstore/detail/google-translate/aapbdbdomjkkjkaonfhkkikfgjllcleb/). In the following screenshot, the TransOver popup bubble appears next to the Google Translate plugin popup:

screenshot at 2018-08-01 14 07 51

After a minute or so of frequent usage, neither plugin works anymore, and the console log for the TransOver background page shows the "unusual traffic from your computer network" response from translate.googleapis.com. The console log for the Google Translate plugin doesn't seem to be as detailed, but a quick grep through its source code shows that it's using the same API. (The "gtx" in the "client=gtx" part of the query string which appears in the Google Translate source - and also in the current TransOver source - probably originally stood for "Google Translate eXtension".) It seems to take at least 15-20 minutes for the API to become responsive again, though it might have some sort of backoff function so that it takes longer and longer each time. Either way, the rate limiter makes the plugins completely useless while it's on.

Maybe the Google Translate team changed some parameters in the rate limiter recently, but the issue isn't altogether completely new. See the following Oct 2015 thread reporting the same issue for a plugin that made use of the text-to-speech API:

Script not working due to Google rate limitation ("unusual traffic" message) · Issue #4 · glutanimate/simple-google-tts https://github.com/Glutanimate/simple-google-tts/issues/4

The Google product forums also show both recent (Jul 2018) and old (Oct 2015) posts reporting the same issue.

unusual traffic (in Google Translate Forum) - Google Product Forums https://productforums.google.com/forum/#!topicsearchin/translate/unusual$20traffic

Now for the workarounds. Note that with the official Google Translate plugin, you can still right-click and have an option to feed the highlighted text to translate.google.com in a separate tab (of course, the whole point of TransOver was to have a HUD-like popup that eliminates this cumbersome step):

screenshot at 2018-08-01 14 11 42

For a full workaround that preserves the popup functionality, an in-place alternative here is to use the Google Dictionary plugin (https://chrome.google.com/webstore/detail/google-dictionary-by-goog/mgijmajocgfcbeboacabfgobmjgjcoja/related). It appears to do translation as well if you set it to a language different than the one highlighted:

screenshot at 2018-08-01 14 48 23

It also has a downloadable word history feature that preserves the translations. The caveat is that it doesn't format the popup cleanly when more than few words are selected:

screenshot at 2018-08-01 14 49 32

I've only been using this Google Dictionary plugin for a couple hours, so I'm not sure if it doesn't have its own rate limiting issue. There are some additional options (search "alternatives to google translate"), but I haven't tried them.

PS @artemave: I found TransOver to be superb and very useful before hitting up against this rate limiter issue. I'd be happy to help find an implementation workaround to properly fix it and then help support it, but I'm not familiar with JQuery and chrome plugins generally and could use a bit of guidance on the development workflow (through a short Skype or Hangouts call, say). If this is something you're open to, let me know.

mozkan007 commented 6 years ago

Hi I have the same problem. Transover can not translate because of the Google's unusual traffic problem. I hope you can fix it soon because I always use transover and without it I can not use any English websites. Thanks.

Edit: I noticed that when I use vpn Transover is working smoothly.

artemave commented 6 years ago

I published a new version - 1.42 - and I believe the issue is resolved. At least for the time being.

Please give it a test and report back if you're still seeing it.

Last but not least, thank you all very much for identifying the problem.

atrox3d commented 6 years ago

Hello, I gave it a quick test and it seems to work again. Wonderful job! I'll keep you posted. Thank you again for your effort.

2018-08-05_203432