Hi!
I am attempting to use the Server Action "Translate" from the folder "TranslatorTextAPI" in an application, but I'm getting the following error: "401000: The request is not authorized because credentials are missing or invalid".
I have done the following:
Is there something I have missed? Should for example my region be specified somewhere?
Best
Martin
Hi martin,
Yes, that's correct, the key should be "Ocp-Apim-Subscription-Region"
Hi Martin, yes definitive check the region and if all the API Keys are ok if needed generate new ones.
But seems that error is because of the region I got one similar using the QnA Maker.
Check also if your REST API inputs in OutSystems side are like this :
-Ocp-Apim-Subscription-Key
-CustomRegion
Thank you for your response João.
My current solution is to set my translate resource in the Azure portal to "Global", then modifying my TranslatorTextAPI URL (Service Center) to
"https://api-eur.cognitive.microsofttranslator.com/"
(This way we seem to at least limit the API to use european data centers)
To make sure that I understand you correctly:
Do you mean that I should enter "CustomRegion" as a header here (screenshot) to specify my region?