SubtitleEdit / subtitleedit

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

BingAds translator aka Azure Translator Resource not working #8194

Closed Schaka closed 5 months ago

Schaka commented 5 months ago

Providing a working API key results in an error message regarding the API key being invalid.

I suspect that this is because some older Bing endpoint is being called. You cannot create API keys for Bing anymore. The endpoint should be https://api.cognitive.microsofttranslator.com/ at all times now.

image

niksedk commented 5 months ago

You can still create api keys: https://learn.microsoft.com/en-us/azure/ai-services/translator/create-translator-resource?source=docs#get-your-authentication-keys-and-endpoint

But somehow it's no longer working... any ideas?

Schaka commented 5 months ago

If you implemented this quite a while ago, I believe the Bing API was different from what has now been migrated to Azure. These are the Azure API keys, which I've created and used, resulting in the above error message. I also made sure roles are assigned. If this still works for you, feel free to close and I'll figure it out eventually.

I suspect the endpoint changed or the SDK is different. I've had quite a few issues with Microsoft Ads SDK in production at work too, so it's possible there are some undocumented changes.

Worst case scenario, I'll set the project up in Rider later this week and see if I can get it to work. I'm not super familiar with the C# ecosystem though.

niksedk commented 5 months ago

It's working again... a microsoft bug !