AidanWelch / google-translate-api

An updated free and unlimited API for Google Translate :dollar: :no_entry_sign:
MIT License
143 stars 20 forks source link

ERROR [TypeError: Cannot convert null value to object] #31

Closed MertCelik0 closed 1 year ago

MertCelik0 commented 1 year ago

Hello, I am getting the error in the title while translating text. I suspected it because I was using texts dynamically. Then I tried to translate the texts statically but this error returns 1 time out of 5 translations (same text).

AidanWelch commented 1 year ago

Hi, can you please send the full error?

Also make sure you are updated to the latest version because there was an update that addressed a possible cause of the error. Other than that it is likely the error is caused by either a network error, or a rate limit. I will try to implement more descriptive error checking for that

MertCelik0 commented 1 year ago

Sorry for not responding quickly. Here is the error I got. Simulator Screenshot - iPhone SE (3rd generation) - 2023-05-15 at 20 27 03