Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yandex Translate API doesn't work (ServerException:ERR_KEY_INVALID) #160

Open
DanuuJI opened this issue Oct 31, 2024 · 0 comments
Open

Yandex Translate API doesn't work (ServerException:ERR_KEY_INVALID) #160

DanuuJI opened this issue Oct 31, 2024 · 0 comments

Comments

@DanuuJI
Copy link

DanuuJI commented Oct 31, 2024

I have created an API key in Yandex Cloud for translate and when I input the key into app settings', I get this error when trying to translate the text.

An error occurred:
ServerException: ERR_KEY_INVALID

Traceback:
Traceback (most recent call last):
File "D:\Utilities\comic-translate-main\app\thread_worker.py", line 30, in run
result = self.fn(*self.args, **self.kwargs)
File "D:\Utilities\comic-translate-main\pipeline.py", line 112, in translate_image
translator.translate(self.main_page.blk_list, image, extra_context)
File "D:\Utilities\comic-translate-main\modules\translator.py", line 163, in translate
translation = YandexTranslator(source='auto', target=target_lang_code, api_key=self.api_key).translate(text)
File "D:\Utilities\Python\lib\site-packages\deep_translator\yandex.py", line 137, in translate
raise ServerException(response["code"])
deep_translator.exceptions.ServerException: ERR_KEY_INVALID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant