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?
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?