OfficeDev / microsoft-teams-apps-icebreaker

Icebreaker is an open-source app for Microsoft Teams that helps the whole team get closer by pairing members up every week at random to meet for coffee, burgers, pizza, or a walk around the block.
MIT License
174 stars 206 forks source link

Icebreaker has stopped working! #263

Closed paulnagadmin closed 2 years ago

paulnagadmin commented 2 years ago

The logic app reports that

"message": "An error has occurred.", "exceptionMessage": "Failed to acquire token for client credentials.",

and that the secret keys for the app expired. I created new keys (https://aka.ms/NewClientSecret), but I still see a similar error. Do I need to add the new secret key to any other configuration file? I don't remember using any keys in the .json file**

gsv022 commented 2 years ago

Hi @paulmitchell507 , Thanks for logging the issue and will get back to you with proper response soon.

frank-brandt commented 2 years ago

@paulmitchell507 Sounds like you have the same problem that I had. Check my steps to resolve the problem in https://github.com/OfficeDev/microsoft-teams-apps-icebreaker/issues/264

gsv022 commented 2 years ago

Hi @paulmitchell507 ,

image

image

image

Hope it helps

paulnagadmin commented 2 years ago

Thank you for the detailed steps. I updated the secret as suggested

@.***

Now I see a different error message, exceptionMessage": "AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app 'a025c30b-d675-4166-b791-f5d90475fff7'.\r\nTrace ID: 34b6625a-e1ae-45a8-bfd3-4ee861da8900\r\nCorrelation ID: 78fa83b4-d08b-4184-bc46-4d79d1b959c1\r\nTimestamp: 2022-09-02 09:42:07Z",

Do you think I should generate another new secret and try again?

Full output below.

{ "message": "An error has occurred.", "exceptionMessage": "Failed to acquire token for client credentials.", "exceptionType": "System.AggregateException", "stackTrace": " at Microsoft.Bot.Connector.Authentication.Retry.d0`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Bot.Connector.Authentication.AdalAuthenticator.d15.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Bot.Connector.Authentication.AdalAuthenticator.d16.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Bot.Connector.Authentication.AppCredentials.d34.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Icebreaker.Controllers.ProcessNowController.d5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Threading.Tasks.TaskHelpersExtensions.d11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()", "innerException": { "message": "An error has occurred.", "exceptionMessage": "AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app 'a025c30b-d675-4166-b791-f5d90475fff7'.\r\nTrace ID: 34b6625a-e1ae-45a8-bfd3-4ee861da8900\r\nCorrelation ID: 78fa83b4-d08b-4184-bc46-4d79d1b959c1\r\nTimestamp: 2022-09-02 09:42:07Z", "exceptionType": "Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException", "stackTrace": " at Microsoft.Identity.Core.OAuth2.OAuthClient.<GetResponseAsync>d__181.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Identity.Core.OAuth2.OAuthClient.d17`1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.d75.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.d72.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.d62.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)\r\n at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.d60.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.d37.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.d64.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Bot.Connector.Authentication.AdalAuthenticator.d23.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Bot.Connector.Authentication.Retry.d0`1.MoveNext()", "innerException": { "message": "An error has occurred.", "exceptionMessage": "Response status code does not indicate success: 401 (Unauthorized).", "exceptionType": "Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException", "stackTrace": " at Microsoft.Identity.Core.OAuth2.OAuthClient.d18`1.MoveNext()" } } }

From: Sai Venkat @.> Sent: 01 September 2022 17:50 To: OfficeDev/microsoft-teams-apps-icebreaker @.> Cc: Paul Mitchell @.>; Mention @.> Subject: Re: [OfficeDev/microsoft-teams-apps-icebreaker] Icebreaker has stopped working! (Issue #263)

Hi @paulmitchell507https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpaulmitchell507&data=05%7C01%7Cpaul.mitchell%40nag.co.uk%7Cdc477f1f1786411e2fcf08da8c3a14be%7Ce7971626b996462eb3c9bbba3a50d55d%7C1%7C0%7C637976478351950299%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zJBzUzbbn6paIpDDswzQaUlkmqEd0pK%2BEq8MULrFhlA%3D&reserved=0 ,

[image]https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F98143492%2F187967231-a8559284-eb80-45d4-8779-1617c1f171d9.png&data=05%7C01%7Cpaul.mitchell%40nag.co.uk%7Cdc477f1f1786411e2fcf08da8c3a14be%7Ce7971626b996462eb3c9bbba3a50d55d%7C1%7C0%7C637976478351950299%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=RH%2Fb5SkjhmtIX8cWlK1IysEQ2qFfpCc05ZqWboPBb0U%3D&reserved=0

[image]https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F98143492%2F187965528-b1edb93a-2aac-4d0b-b3b1-a6c20be9017c.png&data=05%7C01%7Cpaul.mitchell%40nag.co.uk%7Cdc477f1f1786411e2fcf08da8c3a14be%7Ce7971626b996462eb3c9bbba3a50d55d%7C1%7C0%7C637976478351950299%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=G5aD3fMH0pQbj8xXOAy8IwspqDkvo8018V1bGmHWGio%3D&reserved=0

[image]https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F98143492%2F187965682-1b48d68b-f293-478e-a052-6c19e12a617b.png&data=05%7C01%7Cpaul.mitchell%40nag.co.uk%7Cdc477f1f1786411e2fcf08da8c3a14be%7Ce7971626b996462eb3c9bbba3a50d55d%7C1%7C0%7C637976478351950299%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=GvKL03bcF6y0KWaADUxCQNLusU01y0wr5c8wH6bOp%2BM%3D&reserved=0

Hope it helps

- Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOfficeDev%2Fmicrosoft-teams-apps-icebreaker%2Fissues%2F263%23issuecomment-1234535540&data=05%7C01%7Cpaul.mitchell%40nag.co.uk%7Cdc477f1f1786411e2fcf08da8c3a14be%7Ce7971626b996462eb3c9bbba3a50d55d%7C1%7C0%7C637976478352106519%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=XHoJ1KL5PrK9AIi8SOp84V9YXFSlORuxu0CEsHV1dAY%3D&reserved=0, or unsubscribehttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFJK46X556ESQHGABL4J6JTV4DNFLANCNFSM6AAAAAAQBQITA4&data=05%7C01%7Cpaul.mitchell%40nag.co.uk%7Cdc477f1f1786411e2fcf08da8c3a14be%7Ce7971626b996462eb3c9bbba3a50d55d%7C1%7C0%7C637976478352106519%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2FTaAUYL4atbuO%2BQdE0S56P89LgzRIa6du5prX%2BxuWN4%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.**@.>>

Disclaimer

The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: 30 St. Giles, Oxford, OX1 3LE, United Kingdom. Please see our Privacy Notice https://www.nag.com/content/privacy-notice for information on how we process personal data and for details of how to stop or limit communications from us.

This e-mail has been scanned for all viruses and malware by Microsoft Exchange Online (EOP)

gsv022 commented 2 years ago

Hi @paulmitchell507 , It seems that the secret ID has been updated instead of secret value. Could you please update with secret value(highlighted one).

image
csgdeskgithub commented 2 years ago

I re-created a secret value and updated the MicrosoftAppPassword in the keyvault but I still see the same error. Do you think MS support can help?

ghost commented 2 years 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.

csgdeskgithub commented 2 years ago

As mentioned, 5 days ago, I re-created the secret value, but the error was still showing, and the app was failing. The app continued to fail until this morning when it started working. I don't know what to say but thank you for your help!