hubot-google-translate
hubot-google-translate copied to clipboard
Failed to parse GAPI response
Hi,
I keep getting this error and I'm not sure if I did something wrong. Help please?
+1 Translating to Urdu, and Japanese
+1 here as well
Occurs for me as well, using the default samples from the documentation.
+1
+1
+1
+1
+1
might be related to Google blocking requests - happened to me after 5 minutes of usage
+1
The problem is that the shared hosted cloud services that we use (heroku, openshift etc) route their traffic to google via the same IP, so no wonder we hit the limit quickly. No easy fix then :
- change the hosting provider to have a dedicated IP or host it yourself
- set up a proxy server to route google api requests through this proxy
I have this set up on a dedicated server, with a dedicated IP address, and it's still giving me this error. Is there some kind of API key that could be used to help avoid issues like this?
i switched to Bing Translate - https://www.microsoft.com/en-us/translator/translatorapi.aspx
Fixed in #9
Another implementation to use Microsoft Translator is here: https://github.com/kkpoon/hubot-microsoft-translator
+1
#11 fixes this. For a temporary fix, you can use the fork in your project:
"dependencies": {
"hubot-google-translate": "awailly/hubot-google-translate#fix-tests"
},
"dependencies": { "hubot-google-translate": "awailly/hubot-google-translate#fix-tests", },
It didn't work .
@thinhduckhoi See pchaigno/hewbot for a better example. If you can't figure it out, don't hesitate to open an issue at awailly/hubot-google-translate ;)
Ah sorry, man. It worked! I put that code in the wrong place. T_T
awailly/hubot-google-translate isn't working here :(
I receive this response:
`p>403. That’s an error.
Your client does not have permission to get URL /translate_a/single?client=t&hl=en&sl=auto&ssel=0&tl=en&tsel=0&q=%22%22&ie=UTF-8&oe=UTF-8&otf=1&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&dt=at&tk=36960.440312
from this server. That’s all we know.
`
Am I doing something wrong? Or this fix is just not working anymore?
@nickollascoelho Could you open an issue on awailly/hubot-google-translate and will try to fix it when we have a bit of time?
I'm getting the same problem even when applying the fix in package.json. Failed to parse GAPI response using the same examples in the documentation.
@andyph666 The fix doesn't work anymore. Not sure if it's worth fixing it again :/
Thanks for letting me know. It was driving me nuts!
View Google Translate request and replace query paramters. I don't know what is the meaning of the parameters, but it's work.
client:t
sl:en
tl:zh-CN
hl:zh-CN
dt:at
dt:bd
dt:ex
dt:ld
dt:md
dt:qca
dt:rw
dt:rm
dt:ss
dt:t
ie:UTF-8
oe:UTF-8
source:bh
ssel:0
tsel:0
kc:1
tk:986736.609086
q:about