Skip to content

[BUG] Foreign key constraint failed on the field: ticketId #453

@Netherwhal

Description

@Netherwhal

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Foreign key constraint failed on the field: `ticketId`
 01/07/23 22:22:06  [WARN] Failed to archive message 1124827295849394327
 01/07/23 22:22:06  [ERROR] PrismaClientKnownRequestError: 
Invalid `prisma.archivedUser.upsert()` invocation:


Foreign key constraint failed on the field: `ticketId`
    at Rn.handleRequestError (/home/container/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:174:7325)
    at Rn.handleAndLogRequestError (/home/container/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:174:6754)
    at Rn.request (/home/container/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:174:6344)
    at async TicketArchiver.saveMessage (/home/container/src/lib/tickets/archiver.js:85:4)
    at async module.exports.run (/home/container/src/listeners/client/messageCreate.js:192:7) {
  code: 'P2003',
  clientVersion: '4.16.1',
  meta: { field_name: 'ticketId' }
}

Expected Behavior

No response

Steps To Reproduce

No response

Environment

- OS:
- Node:
- NPM:
- Bot:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions