Open mrx23dot opened 2 years ago
For future sumblers upon this issue, I had this too - I had to modify the command to pass the region - in fact because I was doing this from the commandline - I had to modify main.py to allow passing the --region flag. Basically when you set up the Translator in Azure you choose a region and unless the Ocp-Apim-Subscription-Region
header matches, you get an authentication error.
translator = Translator(provider='microsoft', secret_access_key='KEY1....', to_lang='eng', from_lang='ch')
fails with