Odd connection ended error
I've been using Drizzle for months without a hitch. But for some reason I'm now running to an error when I do a simple insert. This is new code (never worked before) and I've been staring at it for hours. Can you spot the simple mistake? What does this error generally mean?
from this code....
error: Uncaught (in promise) Error: write CONNECTION_ENDED domain:5432
return query.reject(Errors.connection('CONNECTION_ENDED', options, options))
^
at Query.handler (https://deno.land/x/postgresjs@v3.3.1/src/index.js:288:34)
at Query.handle (https://deno.land/x/postgresjs@v3.3.1/src/query.js:141:65)
at eventLoopTick (ext:core/01_core.js:166:7)from this code....
const [metadata] = await db.insert(companyMetadata)
.values({
id: "061e34f0-c452-4d33-a923-02618cb6b5e9",
domain: "airbnb.com",
url: "https://www.airbnb.com/",
}).returning();