OfficeDev / microsoft-teams-apps-hrsupport

HR support app template
MIT License
39 stars 49 forks source link

Getting Error "There was a problem reaching this app" #44

Open ahmedmahmoudR opened 3 years ago

ahmedmahmoudR commented 3 years ago

This is an image Even though I see that error, the bot is working and responding. The interesting thing is not everyone sees that error. Test with 10 people and only myself and one other person saw that message.

Also, if I click on Apps and select to open the App from the list of apps, the error goes away for that time. But if I try clicking the App again from the navigation bar, the error comes back. If I go to Teams in a Web Browser the error does not show.

I have tried uninstalling the app from my client and re-adding, same issue. Deleted all cache files from Teams, same issue. Restarted the services in Azure - same issue.

Any idea how to resolve this?

Kareem-Sameh commented 2 years ago

In the App Studio Manifest Editor section, there is an option to add a Loading Indicator. This will indicate if the App is really loading or there is a problem with TEAMS itself.

To use the Show Loading Indicator feature properly, you must install the Microsoft Teams JavaScript SDK, then call both functions below. At that point, the app is ready, and the loading indicator will disappear.

microsoftTeams.appInitialization.notifyAppLoaded(); microsoftTeams.appInitialization.notifySuccess();

Once you’ve executed these two lines of JavaScript, the Teams platform will remove the application loader overlay, displaying your custom application content.

There was a hint in the Teams interface hinting at this. To the right of the checkbox, it does say, “You will have to hide the loading indicator using our SDK”. I’m new to the platform, though, and there are many layers involved in custom Microsoft Teams application development. It wasn’t clear to me the error message was related to the use/misuse of the Loading Indicator functionality.

ms-teams-loading-spinner-checkbox