Skip to content

Session refresh functionality #219

Session refresh functionality

Session refresh functionality #219

Triggered via pull request February 2, 2025 22:08
Status Failure
Total duration 48s
Artifacts

bun-tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
PrismaClientValidationError:: node_modules/@prisma/client/runtime/library.js#L21
{ data: { userId: "owen-user-id", email: "[email protected]", phoneNumber: "1234567890", ~~~~~~~~~~~ hashedPassword: "xxxx", firstName: "Owen", lastName: "Simpson", role: "ONBOARDING", sessions: { create: { sessionId: "owen-session-id", expiresAt: new Date("2025-04-01T19:02:44.512Z") } }, ? stageName?: String | Null, ? isSongWriter?: Boolean, ? isAscapAffiliated?: Boolean, ? isBmiAffiliated?: Boolean, ? createdAt?: DateTime, ? updatedAt?: DateTime, ? musicianGroups?: MusicianGroupCreateNestedManyWithoutOrganizerInput, ? passwordResetReq?: PasswordResetReqCreateNestedOneWithoutUserInput, ? projectSubmissions?: ProjectSubmissionCreateNestedManyWithoutProjectOwnerInput, ? musicSubmissions?: MusicSubmissionCreateNestedManyWithoutArtistInput } } Unknown argument `phoneNumber`. Available options are marked with ?. at new PrismaClientValidationError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:21:2580) at xn (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:29:1363) at handleRequestError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:121:7005) at handleAndLogRequestError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:121:6686) at /home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:121:6393 at /home/runner/work/good-dog-licensing/good-dog-licensing/tests/api/onboarding.test.ts:17:1
PrismaClientValidationError:: node_modules/@prisma/client/runtime/library.js#L21
{ data: { userId: "middleware-test-user", email: "[email protected]", phoneNumber: "1234567890", ~~~~~~~~~~~ firstName: "test", lastName: "user", role: "MEDIA_MAKER", hashedPassword: "$2a$10$FaTfGrXz08EjNtHPBN81KulCri1nGT1SaLveqN6W0pet72k9lx81y", sessions: { createMany: { data: [ { sessionId: "middleware-test-session", expiresAt: new Date("2025-02-02T22:12:44.663Z") }, { sessionId: "middleware-test-session-expired", expiresAt: new Date("2025-02-02T22:06:04.663Z") } ] } }, ? stageName?: String | Null, ? isSongWriter?: Boolean, ? isAscapAffiliated?: Boolean, ? isBmiAffiliated?: Boolean, ? createdAt?: DateTime, ? updatedAt?: DateTime, ? musicianGroups?: MusicianGroupCreateNestedManyWithoutOrganizerInput, ? passwordResetReq?: PasswordResetReqCreateNestedOneWithoutUserInput, ? projectSubmissions?: ProjectSubmissionCreateNestedManyWithoutProjectOwnerInput, ? musicSubmissions?: MusicSubmissionCreateNestedManyWithoutArtistInput }, select: { userId: true, sessions: true } } Unknown argument `phoneNumber`. Available options are marked with ?. at new PrismaClientValidationError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:21:2580) at xn (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:29:1363) at handleRequestError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:121:7005) at handleAndLogRequestError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:121:6686) at /home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:121:6393 at /home/runner/work/good-dog-licensing/good-dog-licensing/tests/api/trpc.test.ts:84:3 at /home/runner/work/good-dog-licensing/good-dog-licensing/tests/api/trpc.test.ts:31:1
error:: tests/api/trpc.test.ts#L118
Expected promise that resolves Received promise that rejected: Promise { <rejected> } at /home/runner/work/good-dog-licensing/good-dog-licensing/tests/api/trpc.test.ts:118:18
error: expect(received).toMatchObject(expected): tests/api/trpc.test.ts#L128
+ 46 | constructor(opts){ + 47 | const cause = getCauseFromUnknown(opts.cause); + 48 | const message = opts.message ?? cause?.message ?? opts.code; + 49 | // eslint-disable-next-line @typescript-eslint/ban-ts-comment + 50 | // @ts-ignore https://github.com/tc39/proposal-error-cause + 51 | super(message, { + ^ + TRPCError: Invalid credentials + code: "UNAUTHORIZED" + + at new TRPCError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/TRPCError.mjs:51:9) + at error (/home/runner/work/good-dog-licensing/good-dog-licensing/packages/trpc/src/procedures/auth.ts:115:7) + at /home/runner/work/good-dog-licensing/good-dog-licensing/packages/trpc/src/procedures/auth.ts:122:13 + at /home/runner/work/good-dog-licensing/good-dog-licensing/tests/api/trpc.test.ts:128:17 - { - code: "FORBIDDEN", - } - Expected - 3 + Received + 14 at /home/runner/work/good-dog-licensing/good-dog-licensing/tests/api/trpc.test.ts:128:17
error:: tests/api/trpc.test.ts#L138
Expected promise that resolves Received promise that rejected: Promise { <rejected> } at /home/runner/work/good-dog-licensing/good-dog-licensing/tests/api/trpc.test.ts:138:18
error:: tests/api/trpc.test.ts#L148
Expected promise that resolves Received promise that rejected: Promise { <rejected> } at /home/runner/work/good-dog-licensing/good-dog-licensing/tests/api/trpc.test.ts:148:18
PrismaClientKnownRequestError:: node_modules/@prisma/client/runtime/library.js#L21
An operation failed because it depends on one or more records that were required but not found. Record to delete does not exist. at new PrismaClientKnownRequestError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:21:1687) at handleRequestError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:121:7362) at handleAndLogRequestError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:121:6686) at /home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:121:6393
PrismaClientValidationError:: node_modules/@prisma/client/runtime/library.js#L21
{ where: { email: "[email protected]" }, update: {}, create: { email: "[email protected]", phoneNumber: "1234567890", ~~~~~~~~~~~ firstName: "Person 1", lastName: "Smith", role: "MUSICIAN", hashedPassword: "person1Password", ? userId?: String, ? stageName?: String | Null, ? isSongWriter?: Boolean, ? isAscapAffiliated?: Boolean, ? isBmiAffiliated?: Boolean, ? createdAt?: DateTime, ? updatedAt?: DateTime, ? musicianGroups?: MusicianGroupCreateNestedManyWithoutOrganizerInput, ? passwordResetReq?: PasswordResetReqCreateNestedOneWithoutUserInput, ? sessions?: SessionCreateNestedManyWithoutUserInput, ? projectSubmissions?: ProjectSubmissionCreateNestedManyWithoutProjectOwnerInput, ? musicSubmissions?: MusicSubmissionCreateNestedManyWithoutArtistInput } } Unknown argument `phoneNumber`. Available options are marked with ?. at new PrismaClientValidationError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:21:2580) at xn (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:29:1363) at handleRequestError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:121:7005) at handleAndLogRequestError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:121:6686) at /home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:121:6393
PrismaClientValidationError:: node_modules/@prisma/client/runtime/library.js#L21
{ data: { userId: "owen-user-id", email: "[email protected]", phoneNumber: "1234567890", ~~~~~~~~~~~ hashedPassword: "xxxx", firstName: "Owen", lastName: "Simpson", role: "ADMIN", sessions: { create: { sessionId: "owen-session-id", expiresAt: new Date("2025-04-01T19:02:44.687Z") } }, ? stageName?: String | Null, ? isSongWriter?: Boolean, ? isAscapAffiliated?: Boolean, ? isBmiAffiliated?: Boolean, ? createdAt?: DateTime, ? updatedAt?: DateTime, ? musicianGroups?: MusicianGroupCreateNestedManyWithoutOrganizerInput, ? passwordResetReq?: PasswordResetReqCreateNestedOneWithoutUserInput, ? projectSubmissions?: ProjectSubmissionCreateNestedManyWithoutProjectOwnerInput, ? musicSubmissions?: MusicSubmissionCreateNestedManyWithoutArtistInput } } Unknown argument `phoneNumber`. Available options are marked with ?. at new PrismaClientValidationError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:21:2580) at xn (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:29:1363) at handleRequestError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:121:7005) at handleAndLogRequestError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:121:6686) at /home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:121:6393 at /home/runner/work/good-dog-licensing/good-dog-licensing/tests/api/get-user.test.ts:16:1
TRPCError:: node_modules/@prisma/client/runtime/library.js#L21
{ data: { firstName: "Damian", lastName: "Smith", role: "ONBOARDING", email: "[email protected]", phoneNumber: "1234567890", ~~~~~~~~~~~ hashedPassword: "$2a$10$y/Wv.pVbpuGPMWGbKeyPNee6qVbBnGPC0XSdDbxGIN4Tf6.iEdbpa", sessions: { create: { expiresAt: new Date("2025-03-04T22:09:24.824Z") } }, ? userId?: String, ? stageName?: String | Null, ? isSongWriter?: Boolean, ? isAscapAffiliated?: Boolean, ? isBmiAffiliated?: Boolean, ? createdAt?: DateTime, ? updatedAt?: DateTime, ? musicianGroups?: MusicianGroupCreateNestedManyWithoutOrganizerInput, ? passwordResetReq?: PasswordResetReqCreateNestedOneWithoutUserInput, ? projectSubmissions?: ProjectSubmissionCreateNestedManyWithoutProjectOwnerInput, ? musicSubmissions?: MusicSubmissionCreateNestedManyWithoutArtistInput }, select: { sessions: true } } Unknown argument `phoneNumber`. Available options are marked with ?. at new PrismaClientValidationError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:21:2580) at xn (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:3:10113) at handleRequestError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:4:6974) at handleAndLogRequestError (/home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:4:6974) at /home/runner/work/good-dog-licensing/good-dog-licensing/node_modules/@prisma/client/runtime/library.js:4:6974