Open tbhaxor opened 3 days ago
Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned.
Hi, based on the error message, you need to use another bot name, or you have to delete the existing bot with the same name from https://dev.botframework.com/, to avoid duplicate. (Not all bots will be shown in here, and it requires manually deletion by calling graph API)
The bot name is already registered to another bot application.
To use another bot name, you can find botFramework/create action from teamsapp.local.yml, update the name and try local debug again. Thanks!
Does the name need to be globally unique, because I was getting error even from the fresh start (deleting all bots).
I will try again with different account to validate it.
Describe the bug
I have configured the teams app and entra id application from the azure portal and using teamsapp cli to create the bot from the information.
To Reproduce Steps to reproduce the behavior:
Scaffold the application
teamsapp new -c bot -n bot-app -i false
Configure the
env/.env.local
Update the
teamsapp.local.yaml
deploy:
Build Teams app package with latest env value
uses: teamsApp/zipAppPackage with:
Path to manifest template
manifestPath: ./appPackage/manifest.json outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json
Validate using manifest schema
uses: teamsApp/validateManifest with:
Path to manifest template
manifestPath: ./appPackage/manifest.json
Validate app package using validation rules
uses: teamsApp/validateAppPackage with:
Relative path to this file. This is the path for built zip file.
appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip
Apply the Teams app manifest to an existing Teams app in
Teams Developer Portal.
Will use the app id in manifest file to determine which Teams app to update.
uses: teamsApp/update with:
Relative path to this file. This is the path for built zip file.
appPackagePath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip
Generate runtime environment variables
Executing provision
Lifecycle stage: provision(2 step(s) in total). The following actions will be executed: (1/2) Action devTool/install: installing dependencies (2/2) Action botFramework/create: creates or updates the bot registration on dev.botframework.com
Executing lifecycle provision Skip trusting development certificate for localhost. (✖) Error: Unable to execute action botFramework/create. Error message: Unable to make API call to Developer Portal. Check Output panel for details. (✖) Error: Failed to Execute lifecycle provision due to failed action: botFramework/create. DeveloperPortalAPIFailedError:Unable to make API call to Developer Portal: AxiosError, Request failed with status code 400, API name: create-bot, X-Correlation-ID: bf9b2565-3558-46f1-9143-0fee82b1fcd5. This may be due to a temporary service error. Try again after a few minutes. data: "The bot name is already registered to another bot application.". Env output: {"SSL_CRT_FILE":"/home/tbhaxor/.fx/certificate/localhost.crt","SSL_KEY_FILE":"/home/tbhaxor/.fx/certificate/localhost.key"} Execution summary:
Summary: (×) Error: Lifecycle stage provision failed. (√) Done: devTool/install was executed successfully. (√) Done: Skip trusting development certificate for localhost. (×) Error: botFramework/create failed. (×) Error: Unable to make API call to Developer Portal: AxiosError, Request failed with status code 400, API name: create-bot, X-Correlation-ID: bf9b2565-3558-46f1-9143-0fee82b1fcd5. This may be due to a temporary service error. Try again after a few minutes. data: "The bot name is already registered to another bot application."
███████████████████▒ 96% | [2/2] Provision: Creating or updating bot registration. (✖) Failed. (✖) Error: AppStudioPlugin.DeveloperPortalAPIFailedError: Unable to make API call to Developer Portal: AxiosError, Request failed with status code 400, API name: create-bot, X-Correlation-ID: bf9b2565-3558-46f1-9143-0fee82b1fcd5. This may be due to a temporary service error. Try again after a few minutes. data: "The bot name is already registered to another bot application."