Haw Jeh Lee (WebSparks) asked a question.

Could be a bug in MicrosoftMachineTranslatorConnector Sitefinity v15.3

Hi, I notice that I can not use the the MicrosoftMachineTranslatorConnector in v15.3.

 

Getting the "Invalid API subscription key." error.

 

My key generated for Azure AI Translator API is 84 chars.

 

Then I notice there is a limit of 32 chars in InitializeConnector method after peeking into the decompiled dll. (Progress.Sitefinity.Translations.MicrosoftMachineTranslatorConnector)

 

Some screenshots to help understand the issue.

(no worry about the key, I've regenerated them)

 

Azure Translator AI generated keydecompiled-dll


  • Haw Jeh Lee (WebSparks)

    Then I went to override it, make it only throw error if < 32 chars

     

    override method 

    and update the setting:

    setting 

    and my translator service appeared now:

    image 

    and it works!

    image

  • Jonathan Read (Progress Software)

    You might not want to leave your key out in the open in your screenshot.