N8N chat memory to local docker supabase not working

LOTS of info in the post linked below, but responses both there and the discord page are very quiet.

In the video, Cole used the hosted subabase, but mine is local in a docker container.

tl;dr is I hosted supabase in docker, and hosted n8n in docker. I can use supabase as a data source but not as chat memory. I get an error that says “connection terminated unexpectedly.” When I get that error there, I get “header has unrecognized format” from supabase log file.

I set N8N to debug log level and got two things… the session is not registered (not sure if this is connected) and this error message below.

2025-02-07 12:27:56 Connection terminated unexpectedly
2025-02-07 12:27:56 Error: Connection terminated unexpectedly
2025-02-07 12:27:56 at /usr/local/lib/node_modules/n8n/node_modules/pg-pool/index.js:45:11

N8N community post

1 Like

Solved. Again details in the link.

1 Like

Thanks for circling back on this, I’m glad you figured it out!