Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/api/send responds with 500 due to invalid payload (websiteId field) #3005

Open
chimpdev opened this issue Oct 14, 2024 · 0 comments
Open

/api/send responds with 500 due to invalid payload (websiteId field) #3005

chimpdev opened this issue Oct 14, 2024 · 0 comments

Comments

@chimpdev
Copy link

chimpdev commented Oct 14, 2024

Describe the Bug

/api/send returns 500.

image
image

https://github.com/discordplace/discord.place/blob/main/client/app/layout-content.js#L33-L38
https://github.com/discordplace/discord.place/blob/main/client/config.js#L53-L57

Database

PostgreSQL

Relevant log output

PrismaClientValidationError:

Invalid `prisma.websiteEvent.create()` invocation:

{

data: {

id: "57be1bb5-6b82-470b-8f90-9720921f71a8",

sessionId: undefined,

visitId: "40aad27f-0a86-5749-adce-8a174f5b69d2",

urlPath: "/",

urlQuery: undefined,

referrerPath: undefined,

referrerQuery: undefined,

referrerDomain: "",

pageTitle: "Discord Place",

eventType: 1,

eventName: null,

+   websiteId: String

}

}

Argument `websiteId` is missing.

at An (/app/node_modules/@prisma/client/runtime/library.js:114:7526)

at _n.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7392)

at _n.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7057)

at _n.request (/app/node_modules/@prisma/client/runtime/library.js:121:6741)

at async l (/app/node_modules/@prisma/client/runtime/library.js:130:9355)

at async x (/app/.next/server/pages/api/send.js:1:2791)

at async K (/app/node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js:20:16853)

at async U.render (/app/node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js:20:17492)

at async NextNodeServer.runApi (/app/node_modules/next/dist/server/next-server.js:600:9)

at async NextNodeServer.handleCatchallRenderRequest (/app/node_modules/next/dist/server/next-server.js:269:37) {

clientVersion: '5.17.0'

}

Which Umami version are you using? (if relevant)

v2.13.2

Which browser are you using? (if relevant)

Chrome

How are you deploying your application? (if relevant)

Railway, Docker

@chimpdev chimpdev changed the title /api/send responds with 500 due to invalid payload (website field) /api/send responds with 500 due to invalid payload (websiteId field) Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant