[GH-ISSUE #5553] [bug]: Failed to get collection requests with server side error #2142

Closed
opened 2026-03-16 23:21:01 +03:00 by kerem · 2 comments
Owner

Originally created by @ChenLuoi on GitHub (Nov 3, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5553

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Platform

Web App

Browser

Chrome

Operating System

Windows

Bug Description

What Happened

After upgrade to 2025.10.0, a server side error occurs when expand a folder to show all request under the folder.

Steps

  1. Select one collection
  2. Click any folder to expand it
  3. No request show, just leave hint: "Collection is empty"

Logs

frontend request payload

{"operationName":"GetCollectionRequests","query":"query GetCollectionRequests($collectionID: ID!, $cursor: ID) {\n  requestsInCollection(collectionID: $collectionID, cursor: $cursor) {\n    id\n    title\n    request\n  }\n}","variables":{"collectionID":"cmbjc98h20005nm116s5rcp28"}}

front request response

{
    "errors": [
        {
            "message": "\nInvalid `this.prisma.teamRequest.findMany()` invocation in\n/dist/backend/dist/team-request/team-request.service.js:154:62\n\n  151     return E.right(teamRequest);\n  152 }\n  153 async getRequestsInCollection(collectionID, cursor, take = 10) {\n→ 154     const dbTeamRequests = await this.prisma.teamRequest.findMany(\nThe column `TeamRequest.mockExamples` does not exist in the current database.",
            "locations": [
                {
                    "line": 2,
                    "column": 3
                }
            ],
            "path": [
                "requestsInCollection"
            ],
            "extensions": {
                "code": "INTERNAL_SERVER_ERROR",
                "stacktrace": [
                    "PrismaClientKnownRequestError: ",
                    "Invalid `this.prisma.teamRequest.findMany()` invocation in",
                    "/dist/backend/dist/team-request/team-request.service.js:154:62",
                    "",
                    "  151     return E.right(teamRequest);",
                    "  152 }",
                    "  153 async getRequestsInCollection(collectionID, cursor, take = 10) {",
                    "→ 154     const dbTeamRequests = await this.prisma.teamRequest.findMany(",
                    "The column `TeamRequest.mockExamples` does not exist in the current database.",
                    "    at ei.handleRequestError (/dist/backend/node_modules/.pnpm/@prisma+client@6.17.1_prisma@6.17.1_typescript@5.9.3__typescript@5.9.3/node_modules/@prisma/client/runtime/library.js:121:7268)",
                    "    at ei.handleAndLogRequestError (/dist/backend/node_modules/.pnpm/@prisma+client@6.17.1_prisma@6.17.1_typescript@5.9.3__typescript@5.9.3/node_modules/@prisma/client/runtime/library.js:121:6593)",
                    "    at ei.request (/dist/backend/node_modules/.pnpm/@prisma+client@6.17.1_prisma@6.17.1_typescript@5.9.3__typescript@5.9.3/node_modules/@prisma/client/runtime/library.js:121:6300)",
                    "    at async a (/dist/backend/node_modules/.pnpm/@prisma+client@6.17.1_prisma@6.17.1_typescript@5.9.3__typescript@5.9.3/node_modules/@prisma/client/runtime/library.js:130:9551)",
                    "    at async TeamRequestService.getRequestsInCollection (/dist/backend/dist/team-request/team-request.service.js:154:32)"
                ]
            }
        }
    ],
    "data": null
}

server side error logs

Backend Server | [Nest] 37  - 11/03/2025, 8:10:41 AM   ERROR [ExceptionsHandler] PrismaClientKnownRequestError: 
Backend Server | Invalid `this.prisma.teamRequest.findMany()` invocation in
Backend Server | /dist/backend/dist/team-request/team-request.service.js:154:62
Backend Server | 
Backend Server |   151     return E.right(teamRequest);
Backend Server |   152 }
Backend Server |   153 async getRequestsInCollection(collectionID, cursor, take = 10) {
Backend Server | → 154     const dbTeamRequests = await this.prisma.teamRequest.findMany(
Backend Server | The column `TeamRequest.mockExamples` does not exist in the current database.
Backend Server |     at ei.handleRequestError (/dist/backend/node_modules/.pnpm/@prisma+client@6.17.1_prisma@6.17.1_typescript@5.9.3__typescript@5.9.3/node_modules/@prisma/client/runtime/library.js:121:7268)
Backend Server |     at ei.handleAndLogRequestError (/dist/backend/node_modules/.pnpm/@prisma+client@6.17.1_prisma@6.17.1_typescript@5.9.3__typescript@5.9.3/node_modules/@prisma/client/runtime/library.js:121:6593)
Backend Server |     at ei.request (/dist/backend/node_modules/.pnpm/@prisma+client@6.17.1_prisma@6.17.1_typescript@5.9.3__typescript@5.9.3/node_modules/@prisma/client/runtime/library.js:121:6300)
Backend Server |     at async a (/dist/backend/node_modules/.pnpm/@prisma+client@6.17.1_prisma@6.17.1_typescript@5.9.3__typescript@5.9.3/node_modules/@prisma/client/runtime/library.js:130:9551)
Backend Server |     at async TeamRequestService.getRequestsInCollection (/dist/backend/dist/team-request/team-request.service.js:154:32) {
Backend Server |   code: 'P2022',
Backend Server |   meta: {
Backend Server |     modelName: 'TeamRequest',
Backend Server |     column: 'TeamRequest.mockExamples'
Backend Server |   },
Backend Server |   clientVersion: '6.17.1'
Backend Server | }

Addition

I am using hoppscotch by docker aio. This is docker compose file:

  hoppscotch:
    container_name: hoppscotch
    image: hoppscotch/hoppscotch:2025.10.0
    environment:
      HOPP_AIO_ALTERNATE_PORT: 80
      ENABLE_SUBPATH_BASED_ACCESS: true
      TOKEN_SALT_COMPLEXITY: 10
      MAGIC_LINK_TOKEN_VALIDITY: 3
      REFRESH_TOKEN_VALIDITY: 604800000
      ACCESS_TOKEN_VALIDITY: 86400000
      DATABASE_URL: postgresql://hoppscotch:password-hide@${INFRA_HOST}:${POSTGRES_PORT}/hoppscotch
      JWT_SECRET: 2a-xxx-0%W*g
      SESSION_SECRET: 6Pm-xxx-@d@A
      DATA_ENCRYPTION_KEY: EPU7-xxx-5!rp8
      REDIRECT_URL: https://example.com
      VITE_ALLOWED_AUTH_PROVIDERS: GITHUB,EMAIL
      MAILER_SMTP_ENABLE: true
      MAILER_USE_CUSTOM_CONFIGS: true
      MAILER_ADDRESS_FROM: Hoppscotch<${SMTP_SENDER}>
      MAILER_SMTP_HOST: ${SMTP_HOST}
      MAILER_SMTP_PORT: ${SMTP_PORT}
      MAILER_SMTP_USER: ${SMTP_USER}
      MAILER_SMTP_PASSWORD: ${SMTP_PASSWORD}
      MAILER_SMTP_SECURE: true
      MAILER_TLS_REJECT_UNAUTHORIZED: true
      GITHUB_CLIENT_ID: Ov2-xxx-dp
      GITHUB_CLIENT_SECRET: 0c2-xxx-583
      GITHUB_CALLBACK_URL: https://example.com/backend/v1/auth/github/callback
      GITHUB_SCOPE: user:email
      VITE_BASE_URL: https://example.com
      VITE_ADMIN_URL: https://example.com/admin
      VITE_BACKEND_GQL_URL: https://example.com/backend/graphql
      VITE_BACKEND_WS_URL: https://example.com/backend/graphql
      VITE_BACKEND_API_URL: https://example.com/backend/v1

There is another error when create mock server

{
    "errors": [
        {
            "message": "mock_server/creation_failed",
            "locations": [
                {
                    "line": 2,
                    "column": 3
                }
            ],
            "path": [
                "createMockServer"
            ],
            "extensions": {
                "code": "INTERNAL_SERVER_ERROR",
                "stacktrace": [
                    "Error: mock_server/creation_failed",
                    "    at throwErr (/dist/backend/dist/utils.js:28:11)",
                    "    at MockServerResolver.createMockServer (/dist/backend/dist/mock-server/mock-server.resolver.js:68:34)"
                ]
            }
        }
    ],
    "data": null
}

Deployment Type

Self-hosted (on-prem deployment)

Version

2025.10.0

Originally created by @ChenLuoi on GitHub (Nov 3, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5553 ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Platform Web App ### Browser Chrome ### Operating System Windows ### Bug Description ## What Happened After upgrade to 2025.10.0, a server side error occurs when expand a folder to show all request under the folder. ## Steps 1. Select one collection 2. Click any folder to expand it 3. No request show, just leave hint: "Collection is empty" ## Logs ### frontend request payload ``` {"operationName":"GetCollectionRequests","query":"query GetCollectionRequests($collectionID: ID!, $cursor: ID) {\n requestsInCollection(collectionID: $collectionID, cursor: $cursor) {\n id\n title\n request\n }\n}","variables":{"collectionID":"cmbjc98h20005nm116s5rcp28"}} ``` ### front request response ``` { "errors": [ { "message": "\nInvalid `this.prisma.teamRequest.findMany()` invocation in\n/dist/backend/dist/team-request/team-request.service.js:154:62\n\n 151 return E.right(teamRequest);\n 152 }\n 153 async getRequestsInCollection(collectionID, cursor, take = 10) {\n→ 154 const dbTeamRequests = await this.prisma.teamRequest.findMany(\nThe column `TeamRequest.mockExamples` does not exist in the current database.", "locations": [ { "line": 2, "column": 3 } ], "path": [ "requestsInCollection" ], "extensions": { "code": "INTERNAL_SERVER_ERROR", "stacktrace": [ "PrismaClientKnownRequestError: ", "Invalid `this.prisma.teamRequest.findMany()` invocation in", "/dist/backend/dist/team-request/team-request.service.js:154:62", "", " 151 return E.right(teamRequest);", " 152 }", " 153 async getRequestsInCollection(collectionID, cursor, take = 10) {", "→ 154 const dbTeamRequests = await this.prisma.teamRequest.findMany(", "The column `TeamRequest.mockExamples` does not exist in the current database.", " at ei.handleRequestError (/dist/backend/node_modules/.pnpm/@prisma+client@6.17.1_prisma@6.17.1_typescript@5.9.3__typescript@5.9.3/node_modules/@prisma/client/runtime/library.js:121:7268)", " at ei.handleAndLogRequestError (/dist/backend/node_modules/.pnpm/@prisma+client@6.17.1_prisma@6.17.1_typescript@5.9.3__typescript@5.9.3/node_modules/@prisma/client/runtime/library.js:121:6593)", " at ei.request (/dist/backend/node_modules/.pnpm/@prisma+client@6.17.1_prisma@6.17.1_typescript@5.9.3__typescript@5.9.3/node_modules/@prisma/client/runtime/library.js:121:6300)", " at async a (/dist/backend/node_modules/.pnpm/@prisma+client@6.17.1_prisma@6.17.1_typescript@5.9.3__typescript@5.9.3/node_modules/@prisma/client/runtime/library.js:130:9551)", " at async TeamRequestService.getRequestsInCollection (/dist/backend/dist/team-request/team-request.service.js:154:32)" ] } } ], "data": null } ``` ### server side error logs ``` Backend Server | [Nest] 37 - 11/03/2025, 8:10:41 AM ERROR [ExceptionsHandler] PrismaClientKnownRequestError: Backend Server | Invalid `this.prisma.teamRequest.findMany()` invocation in Backend Server | /dist/backend/dist/team-request/team-request.service.js:154:62 Backend Server | Backend Server | 151 return E.right(teamRequest); Backend Server | 152 } Backend Server | 153 async getRequestsInCollection(collectionID, cursor, take = 10) { Backend Server | → 154 const dbTeamRequests = await this.prisma.teamRequest.findMany( Backend Server | The column `TeamRequest.mockExamples` does not exist in the current database. Backend Server | at ei.handleRequestError (/dist/backend/node_modules/.pnpm/@prisma+client@6.17.1_prisma@6.17.1_typescript@5.9.3__typescript@5.9.3/node_modules/@prisma/client/runtime/library.js:121:7268) Backend Server | at ei.handleAndLogRequestError (/dist/backend/node_modules/.pnpm/@prisma+client@6.17.1_prisma@6.17.1_typescript@5.9.3__typescript@5.9.3/node_modules/@prisma/client/runtime/library.js:121:6593) Backend Server | at ei.request (/dist/backend/node_modules/.pnpm/@prisma+client@6.17.1_prisma@6.17.1_typescript@5.9.3__typescript@5.9.3/node_modules/@prisma/client/runtime/library.js:121:6300) Backend Server | at async a (/dist/backend/node_modules/.pnpm/@prisma+client@6.17.1_prisma@6.17.1_typescript@5.9.3__typescript@5.9.3/node_modules/@prisma/client/runtime/library.js:130:9551) Backend Server | at async TeamRequestService.getRequestsInCollection (/dist/backend/dist/team-request/team-request.service.js:154:32) { Backend Server | code: 'P2022', Backend Server | meta: { Backend Server | modelName: 'TeamRequest', Backend Server | column: 'TeamRequest.mockExamples' Backend Server | }, Backend Server | clientVersion: '6.17.1' Backend Server | } ``` ### Addition I am using hoppscotch by docker aio. This is docker compose file: ``` hoppscotch: container_name: hoppscotch image: hoppscotch/hoppscotch:2025.10.0 environment: HOPP_AIO_ALTERNATE_PORT: 80 ENABLE_SUBPATH_BASED_ACCESS: true TOKEN_SALT_COMPLEXITY: 10 MAGIC_LINK_TOKEN_VALIDITY: 3 REFRESH_TOKEN_VALIDITY: 604800000 ACCESS_TOKEN_VALIDITY: 86400000 DATABASE_URL: postgresql://hoppscotch:password-hide@${INFRA_HOST}:${POSTGRES_PORT}/hoppscotch JWT_SECRET: 2a-xxx-0%W*g SESSION_SECRET: 6Pm-xxx-@d@A DATA_ENCRYPTION_KEY: EPU7-xxx-5!rp8 REDIRECT_URL: https://example.com VITE_ALLOWED_AUTH_PROVIDERS: GITHUB,EMAIL MAILER_SMTP_ENABLE: true MAILER_USE_CUSTOM_CONFIGS: true MAILER_ADDRESS_FROM: Hoppscotch<${SMTP_SENDER}> MAILER_SMTP_HOST: ${SMTP_HOST} MAILER_SMTP_PORT: ${SMTP_PORT} MAILER_SMTP_USER: ${SMTP_USER} MAILER_SMTP_PASSWORD: ${SMTP_PASSWORD} MAILER_SMTP_SECURE: true MAILER_TLS_REJECT_UNAUTHORIZED: true GITHUB_CLIENT_ID: Ov2-xxx-dp GITHUB_CLIENT_SECRET: 0c2-xxx-583 GITHUB_CALLBACK_URL: https://example.com/backend/v1/auth/github/callback GITHUB_SCOPE: user:email VITE_BASE_URL: https://example.com VITE_ADMIN_URL: https://example.com/admin VITE_BACKEND_GQL_URL: https://example.com/backend/graphql VITE_BACKEND_WS_URL: https://example.com/backend/graphql VITE_BACKEND_API_URL: https://example.com/backend/v1 ``` There is another error when create mock server ``` { "errors": [ { "message": "mock_server/creation_failed", "locations": [ { "line": 2, "column": 3 } ], "path": [ "createMockServer" ], "extensions": { "code": "INTERNAL_SERVER_ERROR", "stacktrace": [ "Error: mock_server/creation_failed", " at throwErr (/dist/backend/dist/utils.js:28:11)", " at MockServerResolver.createMockServer (/dist/backend/dist/mock-server/mock-server.resolver.js:68:34)" ] } } ], "data": null } ``` ### Deployment Type Self-hosted (on-prem deployment) ### Version 2025.10.0
kerem 2026-03-16 23:21:01 +03:00
Author
Owner

@ChenLuoi commented on GitHub (Nov 3, 2025):

All features work normally when downgrade to 2025.9.2

<!-- gh-comment-id:3479387965 --> @ChenLuoi commented on GitHub (Nov 3, 2025): All features work normally when downgrade to 2025.9.2
Author
Owner

@jamesgeorge007 commented on GitHub (Nov 3, 2025):

Hi @ChenLuoi, the v2025.10.0 release includes database migrations for the mock server feature, as indicated by the stack trace. Please ensure to run the latest migrations after upgrading. Here's the documentation for reference.

<!-- gh-comment-id:3479564434 --> @jamesgeorge007 commented on GitHub (Nov 3, 2025): Hi @ChenLuoi, the [v2025.10.0 release](https://github.com/hoppscotch/hoppscotch/releases/tag/2025.10.0) includes database migrations for the mock server feature, as indicated by the stack trace. Please ensure to run the latest migrations after upgrading. Here's the [documentation](https://docs.hoppscotch.io/documentation/self-host/community-edition/install-and-build#using-the-aio-container-3) for reference.
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#2142
No description provided.