Closed alexreg closed 8 years ago
I've got this problem, too.
I have this occasionally since I updated to El Capitan. For some reason, Google says, that there are to many requests from that network. To me, that doesn't make much sense, since the network did not change for me.
Maybe El Capitan does something differently but not sure what. I'm investigating.
Can you please try the following.
Open the workflow folder and open the file "GoogleTranslateWorkflow.php". Go to line 115 and replace it with the following
$url = 'http://translate.google.com/translate_a/t?client=foobar&text='.urlencode($phrase).'&hl=en-EN&sl='.$sourceLanguage.'&tl='.$targetLanguage.'&multires=1&ssel=0&tsel=0&sc=1&ie=UTF-8&oe=UTF-8';
Oh, and one other thing. In the same file, line 127 is commented. Please remove the comment by removing the two slashes at the beginning of the line.
Start a request and post the content of the file "/tmp/alfred.out" here.
You probably want to re-add the slashes back afterwards.
Thanks and best wishes, Thomas
I made that change $url = ...
on line 114, not 115 (I think you meant this), and it seems to be working well again now.
Here's alfred.out
in any case: https://gist.github.com/anonymous/8d278b50e09ca41f7a01
Cheers.
I've changed the line 114 and worked for me as well. :+1: :ok_hand:
Actually it just works a few times after change the URL. Seems that Google is blocking the request.
The output:
Our systems have detected unusual traffic from your computer network. Please try your request again later. Why did this happen?
@alexreg Well, as @andrielfn already stated, that should not work for long. Can you please provide the alfred.out from a request that didn't work?
@andrielfn Can you also provide an alfred.out please?
Ah yes, it’s broken again now. See this log: https://gist.github.com/19e1fdd2f97499c35f56
On 8 Oct 2015, at 17:24, Thomas Hempel notifications@github.com wrote:
@alexreg https://github.com/alexreg Well, as @andrielfn https://github.com/andrielfn already stated, that should not work for long. Can you please provide the alfred.out from a request that didn't work?
@andrielfn https://github.com/andrielfn Can you also provide an alfred.out please?
— Reply to this email directly or view it on GitHub https://github.com/thomashempel/AlfredGoogleTranslateWorkflow/issues/23#issuecomment-146602130.
@alexreg @andrielfn Do you guys still have the problems? I don't have the problems anymore, without any changes to the workflow.
I hope this was a fluke in the Google spam detection, since I don't see what I could do about this problem.
Working now for me. So yeah, could well have just been a problem with the Google servers and their dodgy DOS detection.
On 9 Oct 2015, at 13:46, Thomas Hempel notifications@github.com wrote:
@alexreg https://github.com/alexreg @andrielfn https://github.com/andrielfn Do you guys still have the problems? I don't have the problems anymore, without any changes to the workflow.
I hope this was a fluke in the Google spam detection, since I don't see what I could do about this problem.
— Reply to this email directly or view it on GitHub https://github.com/thomashempel/AlfredGoogleTranslateWorkflow/issues/23#issuecomment-146858134.
Not working again now. Same error. :(
On 9 Oct 2015, at 13:46, Thomas Hempel notifications@github.com wrote:
@alexreg https://github.com/alexreg @andrielfn https://github.com/andrielfn Do you guys still have the problems? I don't have the problems anymore, without any changes to the workflow.
I hope this was a fluke in the Google spam detection, since I don't see what I could do about this problem.
— Reply to this email directly or view it on GitHub https://github.com/thomashempel/AlfredGoogleTranslateWorkflow/issues/23#issuecomment-146858134.
I just release a new version 3.0.2 that tries to reduce the number of requests, sent to Google. This is not immediate fix but might help in the long run.
@alexreg Do you still have the problem? It seems to be fixed for me.
I seem to still have the problem with version 3.0.2, am I the only one?
`:~ ******$ tail -f /tmp/alfred.out
Our systems have detected unusual traffic from your computer network. Please try your request again later. Why did this happen?
Since upgrading, it has immediately stopped working. I now get "No results found" for whatever source/destination language & text.