[GH-ISSUE #5113] [feature]: SelfHost Create new workspace public.TeamAccessRole\" does not exis #1944

Closed
opened 2026-03-16 22:31:12 +03:00 by kerem · 1 comment
Owner

Originally created by @a224327780 on GitHub (May 30, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5113

Is there an existing issue for this?

  • I have searched the existing issues

Summary

Backend Server | [Nest] 37  - 05/30/2025, 6:32:32 AM   ERROR [ExceptionsHandler] PrismaClientUnknownRequestError: 
Backend Server | Invalid `this.prisma.team.create()` invocation in
Backend Server | /dist/backend/dist/team/team.service.js:195:45
Backend Server | 
Backend Server |   192 const isValidName = this.validateTeamName(name);
Backend Server |   193 if (E.isLeft(isValidName))
Backend Server |   194     return isValidName;
Backend Server | → 195 const team = await this.prisma.team.create(
Backend Server | Error occurred during query execution:
Backend Server | ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(PostgresError { code: "42704", message: "type \"public.TeamAccessRole\" does not exist", severity: "ERROR", detail: None, column: None, hint: None }), transient: false })
Backend Server |     at Zn.handleRequestError (/dist/backend/node_modules/.pnpm/@prisma+client@6.8.2_prisma@6.8.2_typescript@5.8.3__typescript@5.8.3/node_modules/@prisma/client/runtime/library.js:121:7649)
Backend Server |     at Zn.handleAndLogRequestError (/dist/backend/node_modules/.pnpm/@prisma+client@6.8.2_prisma@6.8.2_typescript@5.8.3__typescript@5.8.3/node_modules/@prisma/client/runtime/library.js:121:6784)
Backend Server |     at Zn.request (/dist/backend/node_modules/.pnpm/@prisma+client@6.8.2_prisma@6.8.2_typescript@5.8.3__typescript@5.8.3/node_modules/@prisma/client/runtime/library.js:121:6491)
Backend Server |     at async l (/dist/backend/node_modules/.pnpm/@prisma+client@6.8.2_prisma@6.8.2_typescript@5.8.3__typescript@5.8.3/node_modules/@prisma/client/runtime/library.js:130:9778)
Backend Server |     at async TeamService.createTeam (/dist/backend/dist/team/team.service.js:195:22)
Backend Server |     at async TeamResolver.createTeam (/dist/backend/dist/team/team.resolver.js:59:22) {
Backend Server |   clientVersion: '6.8.2

Why should this be worked on?

SelfHost v2025.5.1

Originally created by @a224327780 on GitHub (May 30, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5113 ### Is there an existing issue for this? - [x] I have searched the existing issues ### Summary ``` Backend Server | [Nest] 37 - 05/30/2025, 6:32:32 AM ERROR [ExceptionsHandler] PrismaClientUnknownRequestError: Backend Server | Invalid `this.prisma.team.create()` invocation in Backend Server | /dist/backend/dist/team/team.service.js:195:45 Backend Server | Backend Server | 192 const isValidName = this.validateTeamName(name); Backend Server | 193 if (E.isLeft(isValidName)) Backend Server | 194 return isValidName; Backend Server | → 195 const team = await this.prisma.team.create( Backend Server | Error occurred during query execution: Backend Server | ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(PostgresError { code: "42704", message: "type \"public.TeamAccessRole\" does not exist", severity: "ERROR", detail: None, column: None, hint: None }), transient: false }) Backend Server | at Zn.handleRequestError (/dist/backend/node_modules/.pnpm/@prisma+client@6.8.2_prisma@6.8.2_typescript@5.8.3__typescript@5.8.3/node_modules/@prisma/client/runtime/library.js:121:7649) Backend Server | at Zn.handleAndLogRequestError (/dist/backend/node_modules/.pnpm/@prisma+client@6.8.2_prisma@6.8.2_typescript@5.8.3__typescript@5.8.3/node_modules/@prisma/client/runtime/library.js:121:6784) Backend Server | at Zn.request (/dist/backend/node_modules/.pnpm/@prisma+client@6.8.2_prisma@6.8.2_typescript@5.8.3__typescript@5.8.3/node_modules/@prisma/client/runtime/library.js:121:6491) Backend Server | at async l (/dist/backend/node_modules/.pnpm/@prisma+client@6.8.2_prisma@6.8.2_typescript@5.8.3__typescript@5.8.3/node_modules/@prisma/client/runtime/library.js:130:9778) Backend Server | at async TeamService.createTeam (/dist/backend/dist/team/team.service.js:195:22) Backend Server | at async TeamResolver.createTeam (/dist/backend/dist/team/team.resolver.js:59:22) { Backend Server | clientVersion: '6.8.2 ``` ### Why should this be worked on? SelfHost v2025.5.1
kerem 2026-03-16 22:31:12 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@mirarifhasan commented on GitHub (May 30, 2025):

@a224327780
Run the database migration. It will resolve this error.

<!-- gh-comment-id:2921602666 --> @mirarifhasan commented on GitHub (May 30, 2025): @a224327780 Run the database migration. It will resolve this error.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1944
No description provided.