MicrosoftTranslator / DocumentTranslator-Legacy

Microsoft Document Translator (Archive) - Replaced by the MicrosoftTranslator/DocumentTranslation project in this repository.
Other
409 stars 152 forks source link

Key is invalid #112

Closed SCOMnewbie closed 4 years ago

SCOMnewbie commented 4 years ago

Hi, I've tried to use the app on two Windows 10 1903 and I have the same behavior. When I go in settings and I paste my API key, I receive this error message "Key is invalid. Please visit the Azure portal...". If I try to use the translate tab, I receive a 401000 which means bad credentials which is normal according to the previous message. I've tried in command line too and I also have an error message "Credentials are invalid". I've used this API key on VSCode for a POC successfully so I imagine it should work. Is there anything that I’ve missed? Should I define the endpoint somewhere? Cheers François

chriswendt1 commented 4 years ago

Hi François, The key you use needs to be a key for a "Translator Text" resource. My suspicion is that you have a valid key but for some other resource. Can that be the case?

SCOMnewbie commented 4 years ago

wow, this is a quick answer. Hum I'm new in this service, so I bet you're right. I'm using one of the key that I have received once I've created the service into the Azure portal (see screenshot). Could you help me to find the right one please? Thank you in advance. Capture

SCOMnewbie commented 4 years ago

Thank you @chriswendt1, instead of creating a general cognitive service where the endpoint was https://northeurope.api.cognitive.microsoft.com/ (which include all Cognitive Services), I've created a specific Translator text service from the portal. And now everything is working properly!