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

google translate api v2 not working #8822

Open
Gibsoniste opened this issue Sep 14, 2024 · 1 comment
Open

google translate api v2 not working #8822

Gibsoniste opened this issue Sep 14, 2024 · 1 comment

Comments

@Gibsoniste
Copy link

I've created my API key, billing is enabled, I have verified the key, but for some reason i still get this issue.

It says the API key isn't valid, but it is perfectly valid. Am I doing something wrong?

"Perhaps billing is not enabled (or API key is invalid)?"
at Nikse.SubtitleEdit.Core.AutoTranslate.GoogleTranslateV2.Translate(String text, String sourceLanguageCode, String targetLanguageCode, CancellationToken cancellationToken)
at Nikse.SubtitleEdit.Forms.Translate.MergeAndSplitHelper.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Nikse.SubtitleEdit.Forms.Translate.AutoTranslate.<buttonTranslate_Click>d__33.MoveNext()
{
"error": {
"code": 403,
"message": "Method doesn't allow unregistered callers (callers without established identity). Please use API Key or other form of API consumer identity to call this API.",
"errors": [
{
"message": "Method doesn't allow unregistered callers (callers without established identity). Please use API Key or other form of API consumer identity to call this API.",
"domain": "global",
"reason": "forbidden"
}
],
"status": "PERMISSION_DENIED"
}
}

@niksedk
Copy link
Member

niksedk commented Sep 14, 2024

Try reading this: #6773 (comment)

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

2 participants