Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

bf luis:build is calling a different endpoint if no --endpoint specified #1334

@dawwa

Description

@dawwa

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/"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or an unintended behavior.needs-triageThe issue has just been created and it has not been reviewed by the team.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions