google-translate-token icon indicating copy to clipboard operation
google-translate-token copied to clipboard

Incorrect token, 403 and 429 error

Open ArtanisTheOne opened this issue 4 years ago • 5 comments

Incorrect token's are currently being generated by the @vitalets/google-translate-token which result in a 403 error (forbidden request)

When modifying my branch to put in client: 'gtx' instead of client: 't' it worked for a little while but now stops nearly every request with a 429 error (too many requests)

How can the token generator be fixed to not be producing incorrect tokens? For example, if i get a 403 error the token will be the same numbers on either side of the period (11111.11111 , 45678.45678, 96389.96389 ) meaning only 5/10 numbers are correct.

ArtanisTheOne avatar Dec 19 '20 02:12 ArtanisTheOne

I also have the same problem, or rather, I just can't create the token, instead for the 429 error I would know how to avoid it I think

figoso90 avatar Dec 22 '20 16:12 figoso90

After a few requests you receive a 429 error (due to not having a token thus they're monitoring you more closely) , I have no idea where to start on how to fix this repo to avoid the 111119.111119 tokens which are causing a lot of problems.

ArtanisTheOne avatar Dec 22 '20 17:12 ArtanisTheOne

I found that the source code requested the translate domain name of .com or .cn and then used the tkk: field. This field has been returning null for the time being. It seems that Google has fixed this security vulnerability. I don't know how to solve it I tried to use charles to find the pattern, but I didn't succeed!

Mrshulan avatar Dec 26 '20 09:12 Mrshulan

I found a branch recently updated by @vkedwardli which fixes the issue and has been updated to fit the new systems of Google Batch Execute, I am experiencing 0 errors

https://github.com/vkedwardli/google-translate-api

@matheuss and @vitalets please update your branches with the PR he has made

ArtanisTheOne avatar Dec 26 '20 12:12 ArtanisTheOne

#20 version 2.0.0 complete rewrite

ken107 avatar Dec 31 '20 19:12 ken107