OfficeDev / microsoft-teams-apps-company-communicator

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

Teams Author App Error while launching #1217

Closed sponlinedev closed 8 months ago

sponlinedev commented 10 months ago

We have deployed the Autor app and user app . when we add the Autor app we get the below error

Oops! An unexpected error seems to have occurred. Why not try refreshing your page? Or you can contact your administrator if the problem persists. Intially it load screen partially after a second this error appear.

All the graph permission is created and multi tenant is created for user app and auher app as per the deployment guide

Please advice how to see detail erorr and also other places to check if all configuration is correct

image

Graph App - Registration image image image

Graph Permission image

Author App Registration image

Function App deployment status image

image

image

Azure solution are deployed in Tenant A and Teams app and App registration are done in Tenant B. During the setup tennant id given is Tenant B (tems app installed and app registration)

application insight does not show any error , refer to the image below image From dev tool i can see some error on azure functions not sure if this is related image image

Checked the CROS setting for app services frontdoor url is added in the allowed list image

ahlim0011 commented 10 months ago

I have the same error, but I see I have a few things different then yours, if you fix it can we please have a call or any sort of help, I am really struggling on making this work :(

Screenshot 2023-11-14 235305

This is the only difference I see on my one.

I tried to use it on my phone and I get the below issue

Errors Failed to prepare the message for sending:The orchestrator function 'SyncRecipientsOrchestrator' failed: "The activity function 'BatchRecipientsActivity' failed: "Object reference not set to an instance of an object.". See the function execution logs for additional details.". See the function execution logs for additional details. Gfgg

Test

however it goes to the next step and I can fill in the form.

gsv022 commented 10 months ago

Hi @sponlinedev , Thanks for raising the query.

sponlinedev commented 10 months ago

i have verified the client id , secret and teannt id its correct.

which permission is missing in grap app registration ? as per documention there are 5 permission

In Microsoft APIs under Select an API label, select the particular service and give the following permissions,

Under Commonly used Microsoft APIs,

Select “Microsoft Graph”, then select Delegated permissions and check the following permissions,

GroupMember.Read.All AppCatalog.Read.All then select Application permissions and check the following permissions,

GroupMember.Read.All User.Read.All TeamsAppInstallation.ReadWriteForUser.All

Graph App permission also have 5 permission image

Also there are many error related CORS , refer to SS in issue description .

Where do we check this ?--> Hope you have updated manifest section within graph app registration. Manifest is updated with below "oauth2RequirePostResponse": false, "optionalClaims": { "idToken": [], "accessToken": [ { "name": "upn", "source": null, "essential": false, "additionalProperties": [] } ], "saml2Token": [] },

Add the user.read permission still same issue image

Is it possible to have a teams session based on your availablity

gsv022 commented 10 months ago

Hi @sponlinedev , Could you please share the zipped manifest files used for uploading to the teams

sponlinedev commented 10 months ago

attaching mainefest file zip

Communicator_Author.zip

Can we have a teams call ? short one?

ahlim0011 commented 10 months ago

attaching mainefest file zip

Communicator_Author.zip

Can we have a teams call ? short one?

If you have a fix, please can we have a call?

sponlinedev commented 10 months ago

attaching mainefest file zip Communicator_Author.zip Can we have a teams call ? short one?

If you have a fix, please can we have a call?

wait till we find the root casue and fix,. i will update the thread if we find the solution / fix

sponlinedev commented 10 months ago

@gsv022 Also check the CORS error mentioned in the issue description and previous response for mainfest files for author app

ahlim0011 commented 10 months ago

should I check the same? If so can you please tell me how to do that

ahlim0011 commented 10 months ago

company-communicator-users.zip.zip communicator-hasfeld.zip

Attached both of my zip files

sponlinedev commented 10 months ago

should I check the same? If so can you please tell me how to do that

@ahlim0011 Please wait dont post general comment , it may cause confusion to them. wait till we find the rootcuase .

Please create new thread for your issue if u want

TomSawyer03 commented 10 months ago

image

We have our company communicator running and working but just now, we are receiving the below exception when we try to access it in Teams Microsoft.Azure.Cosmos.Table.StorageException:

GET SentNotifications/GetSentNotifications GET /NotificationData

image

gsv022 commented 10 months ago

@sponlinedev , Issue is being followed internally

sponlinedev commented 10 months ago

@gsv022 The issue we faced on CROC issue is due to URL whitelisting , after whitelisting we are able to launch the application .

However message are not delivering Failed to install application for user: 153c3008-0de3-4d3b-9c6f-c47af6193e43. Exception: Code: BadRequest Message: Unable to create 1on1 conversation between user and BotFailed to execute Skype backend request CreateThreadS2SRequest. Inner error: Code: InvalidRequest Message: Unable to create 1on1 conversation between user and BotFailed to execute Skype backend request CreateThreadS2SRequest. Inner error: AdditionalData: date: 2023-11-24T07:07:22 request-id: 3a70e9e9-b7cf-4613-a034-3d43fdb034d1 client-request-id: 3a70e9e9-b7cf-4613-a034-3d43fdb034d1 ClientRequestId: 3a70e9e9-b7cf-4613-a034-3d43fdb034d1

gsv022 commented 10 months ago

We are following the issue internally

gsv022 commented 8 months ago

Hi @sponlinedev , Please let us know the status of the issue.

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

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.