I had gotten the Supabase vector store working with one ai Agent, and seemed to be testing ok via chat prompt when adding more (though i may be doing it ineffciently—another issue, see screen 1).
The issue is when i introduce a new tabel via the reddit scraper automation in bottom half of screen 1. It was working fine but i struggled a bit with getting the data to be inserted into DB, and may not actually be being input correct (see screen 5).
After hours of struggling and using msot adanced ai models to assist (latest open ai, gem 2.5, etc), its very possible i messed up a good thing as the tables were “working” without issue before introduicng reddit table.
If anyoone need additonal info i can provide. THanks!!!
Describe the problem/error/question
- Wanted: n8n search on Supabase table
reddit
. For ideas. - Problem Was: n8n gave error. Search failed.
- Symptom: Error 42804. Said
Returned type uuid does not match expected type bigint in column 1.
- Thought Was: Supabase function (
match_documents
) defined wrong? - Function’s
RETURNS TABLE
part? Showedid bigint
? - But my table
id
? It’suuid
. That’s the mismatch? - Tried Fix 1: Edited function SQL in Supabase. Changed
bigint
touuid
. - Symptom: Then got new error? 42601 syntax. Did I paste wrong? Only part of it?
- Tried Fix 2: Used full
CREATE OR REPLACE FUNCTION
command. Like, the whole thing. - Problem: Oops? Template used
documents
table name. Mine’sreddit
. So, ran wrong code? Made function worse? - Tried Fix 3: Used correct
CREATE OR REPLACE FUNCTION
. Full code this time. Tablereddit
. Fixid uuid
. Ran it. - Symptom: Still broken?? n8n still showed same 42804 error (
uuid
vsbigint
). Still? Why? - Tested: Ran function directly in Supabase editor. (
SELECT * FROM match_documents(...)
). - Symptom: Supabase itself gave the same 42804 error (
uuid
vsbigint
). Right there in Supabase. - Means?: Function fix (
CREATE OR REPLACE
) didn’t stick? Failed when I ran it? - Question: So, needed run the correct
CREATE OR REPLACE FUNCTION
(withreddit
andid uuid
) again? Had make sure Supabase said “Success”?
What is the error message (if any)?
Please share your workflow
Isolated chat (#screen 2 )
reddit part of flow, this is proably where things get messed up for table (reduced in size)
}
Share the output returned by the last node
see screen shots
Information on your n8n setup
- latest version of n8n
-PostgreSQL 15.8 on aarch64-unknown-linux-gnu, compiled by gcc (GCC) 13.2.0, 64-bit - n8n EXECUTIONS_PROCESS setting (default: own, main):
-cloud
-mac os 15.3 sequoia