deep-translator icon indicating copy to clipboard operation
deep-translator copied to clipboard

RequestError

Open roaddust2 opened this issue 1 year ago • 3 comments

  • deep_translator version: 1.11.4
  • Python version: 3.11
  • Operating System: Debian 12 slim (as a container)

Description

Hello! And thank you for your work

Recently the translation (ka -> en) stopped working and the error below appeared. I did not change anything in code base related to translation

What I Did

Just calling translate:

from deep_translator import GoogleTranslator


translator = GoogleTranslator(source='ka', target='en')
translator.translate('somestring')

Traceback:

File "/opt/venv/lib/python3.11/site-packages/deep_translator/google.py", line 74, in translate
raise RequestError()
deep_translator.exceptions.RequestError: Request exception can happen due to an api connection error. Please check your connection and try again

roaddust2 avatar Sep 09 '23 08:09 roaddust2

@roaddust2 Were you able to resolve this?

mistune avatar Nov 27 '23 12:11 mistune

@roaddust2 Were you able to resolve this?

Same question, as I have the same issue across different languages.

IliasAarab avatar May 21 '24 16:05 IliasAarab

@mistune @IliasAarab Unfortunately no, used MyMemoryTranslator instead for quick hotfix.

roaddust2 avatar May 29 '24 15:05 roaddust2