Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to parse GAPI response #7

Open
veronism opened this issue Sep 2, 2015 · 26 comments
Open

Failed to parse GAPI response #7

veronism opened this issue Sep 2, 2015 · 26 comments

Comments

@veronism
Copy link

veronism commented Sep 2, 2015

Hi,

I keep getting this error and I'm not sure if I did something wrong. Help please?

@amingilani
Copy link

+1
Translating to Urdu, and Japanese

@sammarx
Copy link

sammarx commented Sep 8, 2015

+1 here as well

@doque
Copy link

doque commented Sep 15, 2015

Occurs for me as well, using the default samples from the documentation.

@DBowlerHB
Copy link

+1

4 similar comments
@kelvah
Copy link

kelvah commented Oct 8, 2015

+1

@alanwill
Copy link

+1

@bmjjr
Copy link

bmjjr commented Nov 15, 2015

+1

@jazzytomato
Copy link

+1

@callmephilip
Copy link

might be related to Google blocking requests - happened to me after 5 minutes of usage

@law
Copy link

law commented Jan 23, 2016

+1

@jazzytomato
Copy link

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

@seeruk
Copy link

seeruk commented Jan 25, 2016

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?

@callmephilip
Copy link

i switched to Bing Translate - https://www.microsoft.com/en-us/translator/translatorapi.aspx

@kkpoon
Copy link

kkpoon commented Jan 28, 2016

Fixed in #9

@kkpoon
Copy link

kkpoon commented Jan 28, 2016

Another implementation to use Microsoft Translator is here: https://github.com/kkpoon/hubot-microsoft-translator

@dkinzer
Copy link

dkinzer commented Jan 30, 2016

+1

pchaigno added a commit to awailly/hubot-google-translate that referenced this issue Mar 9, 2016
Tests are still failing because of hubot-archive#7 (Google changed its API)
Add dependencies to be able to wait for the API response
Used translations which are unlikely to change
pchaigno added a commit to awailly/hubot-google-translate that referenced this issue Mar 9, 2016
Tests are still failing because of hubot-archive#7 (Google changed its API)
Add dependencies to be able to wait for the API response
Used translations which are unlikely to change
@pchaigno
Copy link

#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"
},

@khoi-thinh
Copy link

"dependencies": {
"hubot-google-translate": "awailly/hubot-google-translate#fix-tests",
},

It didn't work .

@pchaigno
Copy link

@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 ;)

@khoi-thinh
Copy link

Ah sorry, man. It worked! I put that code in the wrong place. T_T

MLCarey321 added a commit to MLCarey321/dnd-hubot that referenced this issue Apr 1, 2016
@nickollascoelho
Copy link

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?

@pchaigno
Copy link

@nickollascoelho Could you open an issue on awailly/hubot-google-translate and will try to fix it when we have a bit of time?

@snazzybunny
Copy link

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.

@pchaigno
Copy link

pchaigno commented Sep 1, 2016

@andyph666 The fix doesn't work anymore. Not sure if it's worth fixing it again :/

@snazzybunny
Copy link

Thanks for letting me know. It was driving me nuts!

@743v45
Copy link

743v45 commented Nov 18, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests