MicrosoftOffice365 Credentials expire annually - Code: generalException Message: An error occurred sending the request

Thought I’d share this tidbit since I just worked through it.

Registered Application is a robust alternative to using MFA and automate email interaction through the MicrosoftOffice365 activity. This is especially topical since Microsoft is sunsetting Outlook user/pw.

When you set up your Registered Application credentials, you might also set a reminder to update those credentials within the year. Azure credentials do expire without warning!

Complicating matters, the robot does not get the details of the error when the credentials expire. Robot sees: {GetMail activity DisplayName}: Code: generalException Message: An error occurred sending the request

I used fiddler to trap the communication between robot and Azure to capture the actual error message - “error”:“invalid_client”, “error_description”:“AADSTS” The provided client secret keys for app ‘…’ are expired.

If you want to avoid capturing network traffic to debug, remember to update certCreds prior to expiration.

Use fiddler to capture communication between robot and Azure to see that actual error message.

Remember to update certCreds prior to 1-year expiration.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.