OfficeDev / microsoft-teams-apps-company-communicator

Company Communicator app template
MIT License
329 stars 400 forks source link

Urgent need for help: Error after a few seconds of loading #1523

Closed Altinio closed 2 weeks ago

Altinio commented 1 month ago

We get this error when clicking the author app tab in the Team and trying to create and send a new message. It appears to load for a brief second, then errors out.
The screen shows the following after a short loading time:
Oops! An unexpected error seems to have occurred. Why not try refreshing your page? Or you can contact your administrator if the problem persists. @tiwariShiv7

victorsimonlee commented 1 month ago

I had a similar issue not long ago and the problem was that some of the key secrets (used by the app's connection strings) had expired. I generated new secrets and the issue was gone.

May be worth checking it out while you wait for a CC dev to jump in.

Cheers

tiwariShiv7 commented 1 month ago

Hi @Altinio Thanks to reach out to us. @victorsimonlee Thanks for your intent to help.

KatePang commented 1 month ago

@victorsimonlee are you able to share the steps you have taken?

Altinio commented 1 month ago

image image (1) image (2) image (3)

I have now checked every secret, and everything seems to be alright. I have also already followed the steps to fix the authentication issue. I really don’t know why it is not working. Do you have any other ideas why it might not be working, and could you provide me with some guidelines on how to fix it properly?

tiwariShiv7 commented 1 month ago

Hi @Altinio , Could you please share the error details and the supporting screenshot of error from application insights resource from the deployed resource group to investigate further on this issue.

Go to resource group where CC app is deployed --> Go to Application insight type resource -->Under investigate section Click on failures --> share the screenshot and stack trace for Top 3 response codes.

Altinio commented 1 month ago

Erorr Erorr 2 Erorr 3

This is what I got from the failure list. I hope I did it right. If you need more information, please let me know so we can fix this problem as soon as possible. Thank you in advance.

Altinio commented 1 month ago

image (4) image (5) Do I need to set the redirect URL only in one application, and if so, in which one? How does it work when you want to test the change? Is restarting the app service sufficient?

tiwariShiv7 commented 1 month ago

Hey @Altinio , Yes you need to set Redirect URI to only one app registration. The correct app to do this setup is the one created for single tenant. To identify the correct App please check the supported account type in overview section of the app. It should be "My Organization only" rest 2 apps will be having "Multiple Organization".

image
Altinio commented 1 month ago

image

image Did it right here but still nothing changed...

tiwariShiv7 commented 1 month ago

Hey @Altinio , I believe you are missing Bullet 4 Of Step 3 Of Expose An API. Please recheck Step 3 AND step 4 of the deployment guide completely

Altinio commented 1 month ago

image image image image I have added everything as you said, but it's still not working. Is there any possibility that we could have a call or something like that and try to solve the problem in a live chat? It's very important that I fix this problem as soon as possible****

peddivyshnavi commented 1 month ago

Hi @Altinio could you please confirm is this fresh deployment. and if secrets changed recently please verify like mentioned below Please cross verify once again w.r.t secrets renewal with the below steps. Go to Azure Portal Go to App registration Create a new secret value for app registration and grab secret value. Here is the reference. image Then go to resource group. Select key vault from list of resources. Click on secrets under object section. image If the secrets are not visible, Go to Access Policy--> Click on Create image Select Key, secret and certificate management image Give the Id through which one can view the secrets image 3rd step is optional Go for Review+Create Then go to Secrets. Open author/user/graph app password Click new version image Grab the new secret identifier image Paste it in the configuration sections of app service, 3-function apps. Here is the reference of updating the author app password in app service configuration. image Follow the same procedure for the user app password and graph app password updating. For graph app, please dont forget to update the password in AzureAd Client Secret as well. here is the reference image

peddivyshnavi commented 4 weeks ago

@Altinio Could you please update us on the status of the issue? if issue is resolved please feel free to mark ticket as complete

peddivyshnavi commented 3 weeks ago

@Altinio Could you please update us on the status of the issue?

peddivyshnavi commented 2 weeks ago

@Altinio Please let us know if you are still facing this issue and require assistance and we will be happy to discuss. If no further action is needed at the moment and no response is received, we will close out the issue in 2 business days.

peddivyshnavi commented 2 weeks ago

marking this ticket as closed as we didnt received any response