Describe the problem/error/question
I am getting intermittent issues causing failures in my MS Teams AI Agent. The issue appears to stem from the process to refresh the access token from the refresh token for the Microsoft Teams OAuth2 API credential type.
We have an AI Agent that will be working fine, responding, making API requests out to teams, all great. Then out of nowhere, and without making changes, it will suddenly start failing with 403 errors, often with a message saying “No authentication information was provided.”
Shortly later, if we continue messaging the bot (and triggering workflows), it will miraculously recover and start working again. Again we don’t do anything. We just chat with the bot, it works, it stops working, and later starts working again. All because of the teams credentials. The self healing is nice but the fact that it fails in the first place is very alarming. Most employees now consider the bot unreliable and don’t engage with it.
I have also observed another failure mode, where we seem to no longer receive any webhook requests from MS Teams, even though the credentials themselves are fine and workflows run correctly when triggered manually. In these cases, sometimes deactivating and reactivating the workflow fixes the problem. In other cases, the problem persists and sometimes 30 minutes or an hour later, the webhook comes back to life without me doing anything, and old events from Microsoft suddenly start getting processed.
Information on your n8n setup
- n8n version: Version 1.122.5
- Database (default: SQLite): Postgres
- n8n EXECUTIONS_PROCESS setting (default: own, main): default, not set in config
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker container
- Operating system: Host VM is Linux cassprn8n01.well.local 6.8.0-1044-azure #50~22.04.1-Ubuntu SMP Wed Dec 3 15:13:22 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux. Docker container is official from n8n.