n8n errors / Other

Bad request, please check your parameters. Input tokens exceed the configured limits.

platform: n8n / category: Other

Cause

The OpenAI node's memory accumulates history across users sharing one session ID, growing a single context window beyond the API token ceiling.

Fix

Assign a unique session ID per user (e.g. {{ $json.userId }}) in the memory node. Lower the history limit to 10-15 entries. Replace in-memory storage with an external DB (e.g. Supabase) for per-session isolation. Add a summarisation step if the payload itself is large.

Source thread →

Part of the Automation Error Index — n8n errors: browse all.

Hitting an automation error we have not covered?

AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.

Describe the problem