I have an AI Agent that integrates various tools with Supabase as the backend database and uses Postgres Chat Memory for conversational data storage. It worked previously, but now when I run the agent I encounter the following error:
Cannot use a pool after calling end on the pool
Cannot use a pool after calling end on the pool
I am using n8n version 1.74.1 (Self Hosted)
on mac os with Supabase, and I haven’t changed my workflow configuration lately. The error, which originates from the Postgres Chat Memory node, suggests that the connection pool is being closed (via an end()
call) and then reused, leading to a failure in query execution.
I have reviewed my node configurations and custom scripts to ensure that they are not explicitly terminating the connection pool. Any insights or troubleshooting steps to prevent this premature termination would be highly appreciated.