OAuth2 Token Refresh Doesn't Work in HTTP Tools (AI Agents)

Hi,

We’ve been building workflows in n8n for our company and encountered a recurring issue with OAuth2 token refresh. The issue arises when using HTTP tools for AI agents. Although n8n should refresh the token automatically once it expires, we found that after 24 hours, the HTTP tools stop working due to missing credentials. Video and workflow below are examples of a call to HighLevel oAuth2 API.

Interestingly, running a single HTTP request node calling the API seems to refresh the token and restores functionality for all HTTP tools for 24 hours. It took us quite a while to troubleshoot and pinpoint this behavior. Me or Perplexity couldn’t find this being a known issue.

Video of the issue

HTTP tool oAuth2 not refreshing token.mp4

What is the error message (if any)?

There was an error: “Node does not have credential type”

Please share your workflow

Information on your n8n setup

  • n8n version: 1.56.2
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system: Window 11
1 Like

Hi @Tero

Thanks for reporting this! This should be fixed with version 1.65.0

Please let us know if you still encounter errors after updating.

Thanks! :raised_hands:

2 Likes

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