bf luis:build is calling a different endpoint if no --endpoint specified #1334
Labels
bug
Indicates an unexpected problem or an unintended behavior.
needs-triage
The issue has just been created and it has not been reviewed by the team.
Versions
@microsoft/botframework-cli/4.14.1 win32-x64 node-v16.13.2
Describe the bug
Error of
"Handling applications...
Luis build failed: The current API Key is calling host 'foo-luisauthoring-westus.cognitiveservices.azure.com' with custom subdomain of 'foo-luisauthoring-westus' which doesn't match the resource custom domain 'bar-luisauthoring-westus'."
Problem
The CLI does not complain for missing --endpoint, which is required according to the doc, but instead attempts to call a different endpoint foo, which I'm not sure where it loads the value from.
To Reproduce
bf luis:build --out C:\generated --authoringKey <foo's authoring key>--botName MyBot--suffix Test --force --log --luConfig C:\luConfigLuis.json
Adding the --endpoint worked around the issue.
--endpoint "https://bar-luisauthoring-westus.cognitiveservices.azure.com/"
The text was updated successfully, but these errors were encountered: