OfficeDev / teams-toolkit

Developer tools for building Teams apps
Other
457 stars 187 forks source link

"Something went wrong" at local debug attempt. #7766

Closed mattgillam closed 1 year ago

mattgillam commented 1 year ago

Describe the bug

I unexpectedly see the below on a local debug attempt, on multiple project copies that previously worked perfectly.

Screenshot 2023-02-13 at 09 16 30

The referred error message is "Error while reading manifest.json: The file could not be found in the app package."

I unpacked build/appPackage/appPackage.local.json (which is timestamped for my deployment attempt), it does contain manifest.json, I see no obvious issue.

I noticed #7737 so updated templates/appPackage/manifest.template.json to change 'group chat' to 'groupChat'. I subsequently removed the configurableTabs array that referenced groupChat - neither of these changes corrected the issue.

I also noticed #7608 - my app had groupChat in the manifest, now removed in attempt to mitigate this, but didn't use it.

VS Code Extension Information (please complete the following information):

CLI Information (please complete the following information): from where?

Thank you for your help.

ghost commented 1 year 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.

nliu-ms commented 1 year ago

Hey @mattgillam , this is a known issue about bot app. Please see https://github.com/OfficeDev/TeamsFx/issues/7608. Please check the Teams channel in your bot framework, update it until the healthy status is correct. Then it should work.

Please let me know if this is your case and if the workaround works for you. Thanks!

mattgillam commented 1 year ago

Thank you @nliu-ms I did all the following but am still seeing the error:

So I'm still stuck, I now can't run the dev version of my app that was working perfectly, so progress on client required features, that I have a timetable to deploy this week, is stopped. Frustrating.

Do you have any other suggestions please?

Thank you.

mattgillam commented 1 year ago

Here's the change I made to manifest template

image
mattgillam commented 1 year ago

and this is the bot's status, though as the app doesn't use it I'm am unsure how that can be relevant.

image
nliu-ms commented 1 year ago

Hey @mattgillam , we previously meet this error but usually retry can fix it. It should be some data syncing problem between Teams client and Teams Developer Portal. But from your description this error happening all the time.

1) Can you please try to use another Teams app id as the workaround? E.g. remove the Teams app id from "state.dev.json" and provision again. 2) If you cannot do that, can you please try to increase the app version to see if it works?

Please let me know if it works for you! Thanks!

mattgillam commented 1 year ago

fix for me seemed to be:

run, a new app gets created in AAD/AppRegistrations, and a new Teams App in dev.teams.microsoft.com, new json files get created as above

if appropriate update backend to be authorised to accept connections from the new appId in aad.local.json

I've yet to try a deployment but local debug is now working.

nliu-ms commented 1 year ago

Thanks @mattgillam for the detailed information. It's also similar to another issue: https://github.com/OfficeDev/TeamsFx/issues/7822. I will keep following.