SubtitleEdit / subtitleedit

the subtitle editor :)
http://www.nikse.dk/SubtitleEdit/Help
GNU General Public License v3.0
8.73k stars 908 forks source link

google translate api v2 not working #8822

Closed Gibsoniste closed 1 month ago

Gibsoniste commented 1 month ago

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.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 commented 1 month ago

Try reading this: https://github.com/SubtitleEdit/subtitleedit/discussions/6773#discussioncomment-5417761