Microsoft Translator Plug in Error "The request is not authorized because the credentials are missing or invalid."

Hi,

We recently upgraded to Trados Studio 2022 SR2 - 17.2.10.19084
I installed the Microsoft Translator Provider 1.1.5.0 version. I am able to pull translations just fine using the Microsoft plugin for smaller files. For bigger files, we received this error. "The request is not authorized because credentials are missing or invalid". I'm sure that our credentials are working properly as I am able to pull translations for smaller files and call the API directly outside Studio. 

Screenshot of an 'Unexpected error' dialog box with a message stating 'An unexpected error occurred. The error was logged at C:UsersewislAppDataRoamingTrados AppStoreMicrosoftTranslatorProvider. The request is not authorized because credentials are missing or invalid.' with an 'OK' button.

I regenerate a new key from MS Azure, it tooks a few minutes and it is completely random but the message appeared again. Everything is fine for 30-45 minutes and sometimes 1 hour and then it comes back later. I restart everything and no error for a few minutes and then suddenly it starts again.
The language set I am using French(Canada) - English(Canada), see my Settings :
Screenshot of Microsoft Translator Provider settings with API key entered, 'Remember key' checked, 'Region' set to 'None', and 'Language Pair' set to 'French (Canada) - English (Canada)'.
I let Region option at "None", because neither "Canada" nor "Canada Central, Canada East" is functional, we received this : 
Error message dialog box stating 'Unexpected error. The error was logged at C:Users...AppDataRoamingTrados AppStoreMicrosoftTranslatorProvider. An error occurred while sending the request.'
Could you please help, my testing is blocked.

Regards

Belkacem



Generated Image Alt-Text
[edited by: RWS Community AI at 8:11 PM (GMT 1) on 23 Aug 2024]
emoji
Parents
  • Hello Belkacem,

    I understand that you're experiencing an issue with the Microsoft Translator Provider plugin in Trados Studio 2022 SR2. This issue seems to occur with larger files and is related to the authorization credentials. Here are some steps you can take to troubleshoot this issue:

    Step 1: Ensure you have the latest version of Trados Studio and the Microsoft Translator Provider plugin installed. You can check for updates within Trados Studio (Help > Check for updates).

    Step 2: If you have the latest versions and the problem persists, try uninstalling and reinstalling the Microsoft Translator Provider plugin. You can uninstall the plugin under Add-Ins > RWS AppStore > Installed plug-ins. Then, download the latest version of the plugin from the RWS AppStore and install it.

    Step 3: Check your Microsoft Azure credentials and ensure they are correctly entered in the plugin settings. Even though you're able to pull translations for smaller files, there might be a different authorization process for larger files.

    Step 4: If the issue persists, it might be related to the region settings. Although you've set the region to "None", try setting it to a specific region that matches your Microsoft Azure settings.

    If after following these steps the issue still persists, it might be a more complex issue that requires further investigation.

    Remember, it's important to keep your software and plugins up to date to ensure optimal performance and to benefit from the latest features and improvements.

    Best regards,

    RWS Community AI

    emoji
  • Hi Everyone,

    I've had this problem since a while as well. Yesterday I opened an issue at the plugin developer's page (github.com/.../1665) but not sure if they often read the issues (as somebody already opened what seems to be a related issue back in February). Maybe Paul or someone from RWS knows those guys in person and could ask them to have a look at it?

    Best
    Alex

    emoji
  •  ,  ,

    We've released new versions on AppStore, please check and see if you get the same error messages.

    Also, it may sound unnecessary, but I'd also recommend creating a new API key, and try with it. 

    If you still have issues, paste the logs here.

    Thank you,

    Oana

    Oana Nagy | RWS Group

    _____________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji
  • Hi Oana,

    This updated version, 1.2.1.0, cannot be even added to a Trados project. The error trace is below. Anyway, if the code on github is the one that you use, it doesn't seem, at first glance, to refresh the access token regularly, so the token expires after 10 minutes and the main error which is the subject of this thread is thrown. That's a guess though, there might be more or other issues as well, I suppose. Best regards

    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 16:31:06.7651 Error HandleError: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
    at Newtonsoft.Json.JsonTextReader.ParseValue()
    at Newtonsoft.Json.JsonTextReader.Read()
    at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
    at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
    at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
    at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.TryGetSupportedLanguages()
    at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetSupportedLanguages()
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 16:31:10.9094 Error HandleError: System.NullReferenceException: Object reference not set to an instance of an object.
    at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.TrySetSupportedLanguages()
    at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.SetSupportedLanguages()
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 16:32:15.6689 Error HandleError: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
    at Newtonsoft.Json.JsonTextReader.ParseValue()
    at Newtonsoft.Json.JsonTextReader.Read()
    at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
    at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
    at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
    at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.TryGetSupportedLanguages()
    at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetSupportedLanguages()
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 16:32:18.6589 Error HandleError: System.NullReferenceException: Object reference not set to an instance of an object.
    at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.TrySetSupportedLanguages()
    at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.SetSupportedLanguages()

    emoji
  • Thank you   for your input.

    It works fine for me, though, and I cannot reproduce the errors.

    I'll pass your comments to Development to check further.

    Thank you,

    Oana

    Oana Nagy | RWS Group

    _____________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji
  • Hi ,

    Unfortunately me too still have the same error messages with this version of the plugin (1.2.1.0), you will find here the log file

    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-08 09:49:39.5707 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-08 09:49:39.5878 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-08 10:08:31.4201 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-08 10:08:31.4201 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-08 10:08:54.8017 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-08 10:08:54.8047 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-08 10:10:47.0437 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-08 10:10:47.0437 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-08 10:22:30.0466 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-08 10:22:30.0466 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-09 08:44:49.3404 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-09 08:44:49.3604 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 09:03:45.8128 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 09:03:45.8441 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 09:03:52.4262 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 09:03:52.4420 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 09:04:26.9341 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 09:04:26.9500 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 09:04:36.3749 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 09:04:36.3749 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 10:46:17.0552 Error HandleError: System.Exception: The request is not authorized because credentials are missing or invalid.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.RequestTranslation(String sourceLanguage, String targetLanguage, String textToTranslate, String categoryID)
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.TryTranslate(String sourceLanguage, String targetLanguage, String textToTranslate, String categoryID)
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.Translate(LanguagePair languagepair, String textToTranslate)  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 10:46:28.6351 Error HandleError: System.Exception: The request is not authorized because credentials are missing or invalid.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.RequestTranslation(String sourceLanguage, String targetLanguage, String textToTranslate, String categoryID)
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.TryTranslate(String sourceLanguage, String targetLanguage, String textToTranslate, String categoryID)
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.Translate(LanguagePair languagepair, String textToTranslate)  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 14:51:32.4305 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 14:51:32.4305 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 14:57:46.5675 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 14:57:46.5675 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 14:58:16.8435 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 14:58:16.8435 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    

    Regrads
    Belkacem

    emoji
Reply
  • Hi ,

    Unfortunately me too still have the same error messages with this version of the plugin (1.2.1.0), you will find here the log file

    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-08 09:49:39.5707 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-08 09:49:39.5878 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-08 10:08:31.4201 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-08 10:08:31.4201 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-08 10:08:54.8017 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-08 10:08:54.8047 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-08 10:10:47.0437 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-08 10:10:47.0437 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-08 10:22:30.0466 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-08 10:22:30.0466 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-09 08:44:49.3404 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-09 08:44:49.3604 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 09:03:45.8128 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 09:03:45.8441 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 09:03:52.4262 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 09:03:52.4420 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 09:04:26.9341 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 09:04:26.9500 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 09:04:36.3749 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 09:04:36.3749 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 10:46:17.0552 Error HandleError: System.Exception: The request is not authorized because credentials are missing or invalid.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.RequestTranslation(String sourceLanguage, String targetLanguage, String textToTranslate, String categoryID)
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.TryTranslate(String sourceLanguage, String targetLanguage, String textToTranslate, String categoryID)
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.Translate(LanguagePair languagepair, String textToTranslate)  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 10:46:28.6351 Error HandleError: System.Exception: The request is not authorized because credentials are missing or invalid.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.RequestTranslation(String sourceLanguage, String targetLanguage, String textToTranslate, String categoryID)
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.TryTranslate(String sourceLanguage, String targetLanguage, String textToTranslate, String categoryID)
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.Translate(LanguagePair languagepair, String textToTranslate)  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 14:51:32.4305 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 14:51:32.4305 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 14:57:46.5675 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 14:57:46.5675 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 14:58:16.8435 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 14:58:16.8435 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    

    Regrads
    Belkacem

    emoji
Children
  •  ,  ,

    I'll message you to have your input with a new beta version, would that be ok ?

    Thank you!

    Oana

    Oana Nagy | RWS Group

    _____________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji
  •  

    Dear Oana,

    I've received the beta version 1.2.1.1 and tested it.

    Your mail was from noreply@community.rws.com, and I cannot post a reply within community conversation either (the system says I cannot message this user, either I do not have permission or the user is not accepting messages), so I am answering here.

    This version also fails after about 10-15 minutes of work, throwing the same error (The request is not authorized because credentials are missing or invalid). The error trace is below. I can see the changes to the source code committed by Emanuel Albu on github. I am hardly familiar with C# or how the plugin or Trados internals work but it seems to me that the issue might be with the access token getting expired every 10 minutes (according to Azure docs) and no new token being requested by the plugin. I might be wrong, but could you kindly ask him to explore this avenue to rule out this possibility.

    Best regards,
    Alex

    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-15 09:06:49.6769 Error HandleError: System.Exception: The request is not authorized because credentials are missing or invalid.
    at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.RequestTranslation(String sourceLanguage, String targetLanguage, String textToTranslate, String categoryID)
    at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.TryTranslate(String sourceLanguage, String targetLanguage, String textToTranslate, String categoryID)
    at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.Translate(LanguagePair languagepair, String textToTranslate)

    emoji
  • Addition: after 3 hours of using the 1.2.1.1 version I got a new error, GatewayTimeout, which I haven't seen before. Please see below. This is in addition to the Credentials error which is thrown every 10-15 minutes (I handle the Credentials error by opening Project Settings and clicking OK, which I suppose makes the plugin to send a new request containing the API key and get a new 10-minute access token):

    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-15 11:47:28.4497 Error HandleError: System.Web.HttpException (0x80004005): Error: GatewayTimeout, Gateway Time-out
    at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.TryGetSupportedLanguages()
    at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetSupportedLanguages()

    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-15 11:51:58.3385 Error HandleError: System.NullReferenceException: Object reference not set to an instance of an object.
    at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.TrySetSupportedLanguages()
    at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.SetSupportedLanguages()

    emoji
  • Hi ,

    Thank you again for your try, after this beta version (1.2.1.1) still have the same issue, here is the log file,

    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-08 09:49:39.5707 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-08 09:49:39.5878 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-08 10:08:31.4201 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-08 10:08:31.4201 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-08 10:08:54.8017 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-08 10:08:54.8047 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-08 10:10:47.0437 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-08 10:10:47.0437 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-08 10:22:30.0466 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-08 10:22:30.0466 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-09 08:44:49.3404 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-09 08:44:49.3604 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 09:03:45.8128 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 09:03:45.8441 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 09:03:52.4262 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 09:03:52.4420 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 09:04:26.9341 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 09:04:26.9500 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 09:04:36.3749 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 09:04:36.3749 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 10:46:17.0552 Error HandleError: System.Exception: The request is not authorized because credentials are missing or invalid.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.RequestTranslation(String sourceLanguage, String targetLanguage, String textToTranslate, String categoryID)
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.TryTranslate(String sourceLanguage, String targetLanguage, String textToTranslate, String categoryID)
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.Translate(LanguagePair languagepair, String textToTranslate)  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 10:46:28.6351 Error HandleError: System.Exception: The request is not authorized because credentials are missing or invalid.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.RequestTranslation(String sourceLanguage, String targetLanguage, String textToTranslate, String categoryID)
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.TryTranslate(String sourceLanguage, String targetLanguage, String textToTranslate, String categoryID)
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.Translate(LanguagePair languagepair, String textToTranslate)  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 14:51:32.4305 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 14:51:32.4305 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 14:57:46.5675 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 14:57:46.5675 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-11 14:58:16.8435 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-11 14:58:16.8435 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-15 04:56:36.9671 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-15 04:56:36.9861 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-15 04:57:03.6261 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-15 04:57:03.6261 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-15 04:57:29.0522 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-15 04:57:29.0522 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi: 2024-10-15 04:57:42.9556 Error MoveNext
    An error occurred while sending the request.
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.<GetAccessTokenAsync>d__21.MoveNext()  
    MicrosoftTranslatorProvider.Helpers.ErrorHandler: 2024-10-15 04:57:42.9556 Error HandleError: System.Exception: An error occurred while sending the request.
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi.GetAuthToken()
       at MicrosoftTranslatorProvider.Studio.TranslationProvider.MicrosoftApi..ctor(String subscriptionKey, String region)
       at MicrosoftTranslatorProvider.ViewModel.MainWindowViewModel.AreMicrosoftCredentialsValid()  
    

    emoji
  •  ,  ,

    Thank you for the details. I'll pass it on to Development.

    Oana

    Oana Nagy | RWS Group

    _____________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji
  • Hi Oana,

    I can see there is a new version, 1.2.2.0, which seems to address the API key/token problem. Could you please send it for testing or make it available on AppStore?

    Best regards,

    Alex

    emoji
  • Hi  ,

    Of course. I'll send you a message.

    Thank you so much!

    Oana

    Oana Nagy | RWS Group

    _____________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji
  • Dear Oana,

    The updated version (1.2.2.0) seems to be working correctly so far (I tested it for an hour, including a batch-translation of 7,000-word file which was impossible in the past).

    I'll forward this beta-version to my colleagues to try it out.

    Congratulations to you and your developers, especially Emanuel Albu!

    Best regards,

    Alex

    emoji
  • Hi  

    This version (1.2.2.0) also works for me, currently I have installed it for two colleagues for testing, I will keep you informed to have a signed version.
    Thank you very much to you and the support team
    Regards
    Belkacem

    emoji