яσчαℓтℓя
PPrisma
•Created by яσчαℓтℓя on 11/20/2024 in #help-and-questions
TypeError: The "payload" argument must be of type object. Received null
There's an ongoing issue in our codebase where Prisma queries that fail give the error in the title, which isn't the typical error we see in other projects. Our project is using NextJS 15.0.2 and Prisma (with neon serverless adapter) 5.22.0.
Here is the client:
import { Pool } from "@neondatabase/serverless";
import { PrismaNeon } from "@prisma/adapter-neon";
import { PrismaClient } from "@prisma/client";
const globalForPrisma = global as unknown as { prisma: PrismaClient };
function makeClient() {
const neon = new Pool({ connectionString: process.env.DATABASE_URL });
const adapter = new PrismaNeon(neon);
return new PrismaClient({ adapter });
}
const db = globalForPrisma.prisma || makeClient();
if (process.env.NODE_ENV === "development") {
globalForPrisma.prisma = db;
}
export default db;
2 replies
PPrisma
•Created by яσчαℓтℓя on 10/18/2024 in #help-and-questions
pulse
Prisma Pulse could not connect to the datasource db url. PostgreSQL returned the error: "Feature not supported: RDS Proxy currently doesn’t support the option idle_in_transaction_session_timeout.". This is probably not a problem with Prisma Pulse.
24 replies
PPrisma
•Created by яσчαℓтℓя on 4/15/2024 in #help-and-questions
Why have "id" and "modelName" been left out of Pulse subscription event types?
export interface PulseCreateEvent<T> {
created: T;
action: "create";
}
export interface PulseDeleteEvent<T> {
deleted: T;
action: "delete";
}
export interface PulseUpdateEvent<T> {
after: T;
action: "update";
}
These are not comprehensive. Additional fields are coming through in the event object. Why are they not defined in these types?
1 replies