lushan88a / google_trans_new

A free and unlimited python API for google translate.
MIT License
393 stars 170 forks source link

TypeError at random times #63

Open Maichelanger opened 1 year ago

Maichelanger commented 1 year ago

I've been using this library for some time now, and it's true that having this error from time to time wasn't very uncommon, so I just nested various try-except together and it made the trick.

But lately, any of the libraries using Google translate are returning way too often the following error when translating any kind of text: TypeError: the JSON object must be str, bytes or bytearray, not NoneType

It doesn't seem to be consistent, since re-trying the same text later will work. Is this a problem of the libraries that uses this service or it's a bug of the program?