Describe the issue/error/question
We are using Microsoft Teams node to post a message to the channel when a particular webhook is triggered.
Microsoft Teams OAuth credentials are successfully configured and the account is connected.
The message is successfully posted for some time (1 hour based on my considerations), but after some time the workflow throws an error.
Microsoft Teams account is still marked as connected:
What is the error message (if any)?
But the Team ID and Channel ID in node configuration are marked as error.
Clicking the button “reconnect” fixes the error for another hour or so.
Please share the workflow
Share the output returned by the last node
{
"body": {
"error": "invalid_client",
"error_description": "AADSTS7000215: Invalid client secret is provided. Trace ID: * Correlation ID: * Timestamp: 2022-01-20 13:18:04Z",
"error_codes": [
7000215
],
"timestamp": "2022-01-20 13:18:04Z",
"trace_id": "6f6ec321-b69d-4040-b733-55870270b800",
"correlation_id": "e35eeb0f-1b84-4ebd-b32c-597a2cac2cde",
"error_uri": "https://login.microsoftonline.com/error?code=7000215"
},
"code": "EAUTH"
}
However it is not possible that the incorrect secret is provided, as the credential worked before and after clicking the “Reconnect” button works like charm again.
Stack
NodeApiError: UNKNOWN ERROR - check the detailed error for more information
at Object.microsoftApiRequest (/usr/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Microsoft/Teams/GenericFunctions.js:23:15)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Object.execute (/usr/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Microsoft/Teams/MicrosoftTeams.node.js:234:44)
at async /usr/lib/node_modules/n8n/node_modules/n8n-core/dist/src/WorkflowExecute.js:447:47
Information on your n8n setup
- n8n version: 0.159.1
- Database you’re using SQLite:
- Running n8n via npm (pm2):