[GH-ISSUE #5222] new version cant load workspace ,,,,,,,version 2025.6.0 ,,,, request api: /graphql return error #1993

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

Originally created by @mgl-pub on GitHub (Jul 5, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5222

{
"errors": [
{
"message": "\nInvalid this.prisma.teamMember.count() invocation in\n/dist/backend/dist/team/team.service.js:43:45\n\n 40 return this.deleteUserFromAllTeams(user.uid);\n 41 }\n 42 async getCountOfUsersWithRoleInTeam(teamID, role) {\n→ 43 return await this.prisma.teamMember.count(\nError occurred during query execution:\nConnectorError(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 })",
"locations": [
{
"line": 6,
"column": 5
}
],
"path": [
"myTeams",
0,
"ownersCount"
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"stacktrace": [
"PrismaClientUnknownRequestError: ",
"Invalid this.prisma.teamMember.count() invocation in",
"/dist/backend/dist/team/team.service.js:43:45",
"",
" 40 return this.deleteUserFromAllTeams(user.uid);",
" 41 }",
" 42 async getCountOfUsersWithRoleInTeam(teamID, role) {",
"→ 43 return await this.prisma.teamMember.count(",
"Error occurred during query execution:",
"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 })",
" 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)",
" 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)",
" 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)",
" 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)",
" at async TeamService.getCountOfUsersWithRoleInTeam (/dist/backend/dist/team/team.service.js:43:16)",
" at async Object.target [as ownersCount] (/dist/backend/node_modules/.pnpm/@nestjs+core@11.1.1_@nestjs+common@11.1.1_class-transformer@0.5.1_class-validator@0.14._2561f3f114fd35d159b8c3ff6ee92d90/node_modules/@nestjs/core/helpers/external-context-creator.js:74:28)"
]
}
}
],
"data": null
}

Originally created by @mgl-pub on GitHub (Jul 5, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5222 { "errors": [ { "message": "\nInvalid `this.prisma.teamMember.count()` invocation in\n/dist/backend/dist/team/team.service.js:43:45\n\n 40 return this.deleteUserFromAllTeams(user.uid);\n 41 }\n 42 async getCountOfUsersWithRoleInTeam(teamID, role) {\n→ 43 return await this.prisma.teamMember.count(\nError occurred during query execution:\nConnectorError(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 })", "locations": [ { "line": 6, "column": 5 } ], "path": [ "myTeams", 0, "ownersCount" ], "extensions": { "code": "INTERNAL_SERVER_ERROR", "stacktrace": [ "PrismaClientUnknownRequestError: ", "Invalid `this.prisma.teamMember.count()` invocation in", "/dist/backend/dist/team/team.service.js:43:45", "", " 40 return this.deleteUserFromAllTeams(user.uid);", " 41 }", " 42 async getCountOfUsersWithRoleInTeam(teamID, role) {", "→ 43 return await this.prisma.teamMember.count(", "Error occurred during query execution:", "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 })", " 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)", " 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)", " 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)", " 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)", " at async TeamService.getCountOfUsersWithRoleInTeam (/dist/backend/dist/team/team.service.js:43:16)", " at async Object.target [as ownersCount] (/dist/backend/node_modules/.pnpm/@nestjs+core@11.1.1_@nestjs+common@11.1.1_class-transformer@0.5.1_class-validator@0.14._2561f3f114fd35d159b8c3ff6ee92d90/node_modules/@nestjs/core/helpers/external-context-creator.js:74:28)" ] } } ], "data": null }
kerem closed this issue 2026-03-16 22:47:22 +03:00
Author
Owner

@mirarifhasan commented on GitHub (Jul 5, 2025):

@mgl-pub Please run the DB migration. This will solve this error.
For reference: Database migration guide

<!-- gh-comment-id:3037883575 --> @mirarifhasan commented on GitHub (Jul 5, 2025): @mgl-pub Please run the DB migration. This will solve this error. For reference: [Database migration guide](https://docs.hoppscotch.io/documentation/self-host/community-edition/install-and-build#migrations)
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#1993
No description provided.