I’m getting the below error on around 10% of my workflow executions. These only happen on MS Graph or MS Teams requests.
My current n8n setup is:
Self hosted
V2.3.4
Postgres SQL
Docker Compose
Linux (ubuntu 24.04)
it seems as thou either the token isn’t being passed at all in the headers or the token has expired and a new one isn’t auto created. If I try to reprocess the failed execution then it almost always succeeds.
The error you’re seeing usually means the OAuth2 token isn’t being passed correctly or has expired. Since reprocessing the failed executions works, it suggests a temporary issue with token retrieval.
You might want to make sure the “Authenticate” setting in your MS Graph or MS Teams nodes is set up correctly, and that the “Scopes” are accurate. Also, consider checking your n8n logs for any related errors during the failed executions, which might provide clues about the token refresh process.
Thanks @JohnHalex - I already have this set to retry 5 times at 5 second intervals. Normally I have to wait a couple of minutes before retrying to get the node to succeed.
I’ve already restarted n8n, created new credentials and I get the same errors. It’s like n8n just isn’t passing any auth headers in the request “sometimes”