Closed v-jaswel closed 5 years ago
Thank you for opening this issue! We are routing it to the appropriate team for follow up.
Please disregard. This was happening because I had the constructor parameters reversed. I should have used: const client = new LUIS.LUISAuthoringClient (endpoint, creds); Thank you!
I tested this again, and now the const client = new LUIS.LUISAuthoringClient (endpoint, creds);
gives the error, and it's flip of params does not:
const client = new LUIS.LUISAuthoringClient (creds, endpoint);
Is your feature request related to a problem? Please describe. I'm not able to authenticate to LUIS using either ms-rest-azure.CognitiveServicesCredentials or @azure/ms-rest-js.ApiKeyCredentials. One or the other of these has previously worked for me with other Cognitive Services (QnAMaker, Custom Search, etc).
With either of these, I get the same error:
I'm not finding any useful information about the "credentials argument needs to implement signRequest method" error. All the sample code I've found for authenticating to Cognitive Services seems to involve using interactive logon.
Describe the solution you'd like As I understand it I should be able to authenticate to a given Cognitive Service with an Azure subscription key (just as I would if I used the REST API), but I'm not sure what credential class I should be using.
Describe alternatives you've considered I've been searching for several hours and haven't found any sample code that seems relevant to my problem.
Additional context Please let me know if I can provide any additional information. Thank you!