-
Notifications
You must be signed in to change notification settings - Fork 36
Stopped working #19
Comments
I can't confirm this. It's still working for me. Can you give a few more details. What languages are you trying to translate and how? Greets, |
Never mind, it has worked at home. Tomorrow I'll test on work's connection again. Sorry to bother |
@alexreg it's working at my house but not at work. I suppose it is a network problem. |
Well it’s definitely not a network problem here… always worked at my home, but not the past 2 days. It could well be regional – Google often roll out new web pages / APIs in a very patchy way. @thomashempel, do you need me to do a packet sniffing session… or something simpler, to help diagnose?
|
@alexreg Well, first off, it might be helpful to know where you come from. So I can try to find out what the problem might be. For me everything is still working without any problems. What I could imagine is, that somehow the rate limit of the API is exceeded because of some proxies on the way from your client to Google. But that is really just a guess. What you could try is, open the workflow and inside open the "googleTranslate.php". Go to line 68 and behind the $out = curl_exec($ch); add file_put_contents('/tmp/alfred.out', $url . "\n" . $out); Than try to translate something and post the file "/tmp/alfred.out" here. That should tell us what the API says. Best wishes, |
Aha, that certainly illuminates the problem. It seems the response is a "page moved" one. I guess you need to pass the -L option to curl (or equivalent in code)? And perhaps modify the URL too? The contents of
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://ipv4.google.com/sorry/IndexRedirect?continue=http://translate.google.com/translate_a/t%3Fclient%3Dit%26text%3Dhello%26hl%3Den-EN%26sl%3Den%26tl%3Des%26multires%3D1%26ssel%3D0%26tsel%3D0%26sc%3D1%26ie%3DUTF-8%26oe%3DUTF-8&q=CGMSBF4DzLoYuLH0rQUiGQDxp4NLEZf8pCb5Ja-jxQq-eFMrmp0Usok">here</A>.
</BODY></HTML> |
So, I added https://gist.github.com/86b4563f803681141427 https://gist.github.com/86b4563f803681141427 Maybe I’m just using the utility too much? In any case, that’s awkward… is there some way around this? Perhaps adding in a user-agent header or something?
|
Excellent: so adding the line Perhaps you could make a new release with this fix? Per above, would be nice to get a Spanish flag added too (and a few others, if it’s not too much to ask). Cheers!
|
Alright, a new version 2.3.1 with the fixes is online. It also includes a spanish flag icon! ;-) Please let me know if it is working now, so I can close this issue. Thanks and best wishes, |
Seems to work for now |
Yes, all is good. Thank you Thomas!
|
Where do you get your flags from by the way? Maybe I will add some in the future, and submit a pull request so you can add them easily…
|
TBH, Normally I just search for royalty free images on Google that don't need any mentioning. |
It is not working for me anymore. Does someone confirm the same? Thanks :)
The text was updated successfully, but these errors were encountered: