OfficeDev / teams-toolkit

Developer tools for building Teams apps
Other
454 stars 183 forks source link

DeveloperPortalAPIFailed: The bot name is already registered to another bot application. #10003

Open kuojianlu opened 11 months ago

kuojianlu commented 11 months ago

This is a quick solution for anyone who meets the issue when debugging a bot project.

Describe the bug DeveloperPortalAPIFailed: API call to Developer Portal failed: Error, Request failed with status code 400, API name: create-bot, X-Correlation-ID: db650b37-aaf0-4671-a572-326b800ae297. This may come from some intermittent service error. Please wait for a few minutes and retry the current step. data: "The bot name is already registered to another bot application."

To Reproduce Cannot reproduce stably.

Solution We are still figuring out the root cause. Below is a quick workaround:

  1. Remove the environment variable BOT_ID from env/.env.local.
  2. Debug again.

Related issues: https://github.com/OfficeDev/TeamsFx/issues/9928, https://github.com/OfficeDev/TeamsFx/issues/9419

microsoft-github-policy-service[bot] commented 11 months 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.

microsoft-github-policy-service[bot] commented 11 months ago

Sorry for the inconvenience! Based on the info provided, the issue is caused by the API failure from Teams Developer Portal. We will inform you once we get any updates.