OfficeDev / microsoft-teams-apps-champion-management

Champion Management Platform is a custom Teams app that enables organizations to onboard and maintain champions/ SME in their organization in Teams.
MIT License
125 stars 48 forks source link

Getting error with 'Add to Teams' option #120

Closed kkarra3 closed 1 year ago

kkarra3 commented 1 year ago

Hi

I have uploaded the package to the SharePoint App Catalog and enabled it and approved all the permissions. When I try to 'Add to Teams' I keep getting the below error (Couldn't add app to Teams, check you network connection and try again). I have no issues with the network and I have tried multiple times. I have even deleted the app and reuploaded it with the same result. Anyone had this issue and have a workaround?

image

v-saikirang commented 1 year ago

Hi @kkarra3,

Thanks for reaching out to us. May I know if this is a new installation or if this is an upgrade.

Usually this error pops up when you have have the app deployed already. But since you mentioned you tried deleting the app it could be a temporary glitch in Teams Admin center. You can check back after some time. In any case this issue is not specific to the App itself. Please let me know how this works out. Thanks.

kkarra3 commented 1 year ago

Thanks for the quick response. It's a new installation. I could now successfully add the app to teams after multiple attempts. Now, when I try to add the app in a teams channel I get 'This app cannot be found' error. I verified that the app is visible in the teams admin center-->Manage Apps and it's status is 'Allowed' . Any ideas here?

image

v-saikirang commented 1 year ago

Hi @kkarra3,

May I know if you are using a demo tenant(on.microsoft.com)?

Instead of adding it to a teams try to set up the app first by opening it from the "Apps" section in teams. It could also be caching issues which usually gets cleared with time. Please try in a new browser after few hours.

Thanks.

kkarra3 commented 1 year ago

Hi

Ours is not a demo tenant, it's a prod tenant. As you mentioned, it could have been a cache issue as I could now install and add the app to a team.

However, I am getting the below 'spinning wheel' forever. My colleague tried it on a different team channel with the same result.

image

v-saikirang commented 1 year ago

Hi @kkarra3,

Can you please provide the below information:

1) Screenshot of the API permissions from SP Admin center 2) Have you tried opening the app with an admin account. If not please try opening the app with a SP admin account. 3) Can you check if site collection "championmanagementplatform" is created. If yes, can you share a screenshot of the Site contents page of the site. 4) If you are still facing the issue please open the app in chrome browser and share the console logs. Thanks.

kkarra3 commented 1 year ago

I am attaching the screenshots for both API permissions & the site collection site contents page. I did try to open the app as a SP admin. I will send the chrome browser logs shortly.

image

image

v-saikirang commented 1 year ago

Hi @kkarra3, Thanks for the screenshots. Please share the console logs. Thanks,

timokock commented 1 year ago

Hi, I´m facing same issue. Working on a demo tenant and Edge browser. I´m not able to sync to Teams. Tried out in both views classic/modern. image

v-saikirang commented 1 year ago

Hi @timokock,

Thanks for reaching out to us. Can you please create a new issue so it's easy to track and work on seperately. Thanks.

kkarra3 commented 1 year ago

Please find console log attached.

champion-error.txt

v-saikirang commented 1 year ago

Hi @kkarra3,

Thanks for sharing the console logs. I see 403 forbidden errors in the console logs. I have not seen this errors before.

Can you please check couple things here: 1) Can you add your self as site collection admin to the share point app and try opening the app again. 2) Can you also try accessing this URL in the browser and share a screenshot.

https://<>.sharepoint.com/sites/ChampionManagementPlatform/_api/web/lists/

Thanks.

kkarra3 commented 1 year ago

Hi

Thank you, adding myself as the SCA on the https://<>.sharepoint.com/sites/ChampionManagementPlatform site seems to have done the trick and the app now loads. Does this mean anyone who need to add the app in their teams channel should be added as a SCA?

v-saikirang commented 1 year ago

Hi @kkarra3,

No, it's not required for anyone else to be added as SCA. You just need to provide them contribute access to the site.

I will go ahead and close the ticket for now. Please let me know if you need more information.

Thanks.