mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #5923] [bug]: when i try to delete a request #2324
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#2324
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cloudzhou on GitHub (Mar 2, 2026).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5923
Originally assigned to: @mirarifhasan on GitHub.
Is there an existing issue for this?
Platform
Web App
Browser
Chrome
Operating System
Windows
Bug Description
docker logs -f hopp-backend
Backend Server | Query Complexity: 1
Backend Server | Error from TeamRequestService.deleteTeamRequest ConflictException:
Backend Server | Invalid
tx.teamRequest.updateMany()invocation inBackend Server | /dist/backend/dist/src/team-request/team-request.service.js:128:46
Backend Server |
Backend Server | 125 where: { id: requestID },
Backend Server | 126 });
Backend Server | 127 if (deletedTeamRequest) {
Backend Server | → 128 await tx.teamRequest.updateMany(
Backend Server | Unique constraint failed on the fields: (
"teamID","collectionID","orderIndex")Backend Server | at /dist/backend/dist/src/team-request/team-request.service.js:138:27
Backend Server | at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
Backend Server | at async Proxy.transactionWithCallback (/dist/backend/node_modules/.pnpm/@prisma+client@7.4.0_prisma@7.4.0@types+react@19.2.6_react-dom@19.2.0_react@19.2.0__re_6599cd031faaab6a0d3e62e5be2e50e3/node_modules/@prisma/client/runtime/client.js:75:4390)
Backend Server | at async TeamRequestService.deleteTeamRequest (/dist/backend/dist/src/team-request/team-request.service.js:119:13)
Backend Server | at async TeamRequestResolver.deleteRequest (/dist/backend/dist/src/team-request/team-request.resolver.js:111:27) {
Backend Server | response: PrismaClientKnownRequestError:
Backend Server | Invalid
tx.teamRequest.updateMany()invocation inBackend Server | /dist/backend/dist/src/team-request/team-request.service.js:128:46
Backend Server |
Backend Server | 125 where: { id: requestID },
Backend Server | 126 });
Backend Server | 127 if (deletedTeamRequest) {
Backend Server | → 128 await tx.teamRequest.updateMany(
Backend Server | Unique constraint failed on the fields: (
"teamID","collectionID","orderIndex")Backend Server | at zr.handleRequestError (/dist/backend/node_modules/.pnpm/@prisma+client@7.4.0_prisma@7.4.0_@types+react@19.2.6_react-dom@19.2.0_react@19.2.0__re_6599cd031faaab6a0d3e62e5be2e50e3/node_modules/@prisma/client/runtime/client.js:65:8172)
Backend Server | at zr.handleAndLogRequestError (/dist/backend/node_modules/.pnpm/@prisma+client@7.4.0_prisma@7.4.0_@types+react@19.2.6_react-dom@19.2.0_react@19.2.0__re_6599cd031faaab6a0d3e62e5be2e50e3/node_modules/@prisma/client/runtime/client.js:65:7467)
Backend Server | at zr.request (/dist/backend/node_modules/.pnpm/@prisma+client@7.4.0_prisma@7.4.0_@types+react@19.2.6_react-dom@19.2.0_react@19.2.0__re_6599cd031faaab6a0d3e62e5be2e50e3/node_modules/@prisma/client/runtime/client.js:65:7174)
Backend Server | at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
Backend Server | at async a (/dist/backend/node_modules/.pnpm/@prisma+client@7.4.0_prisma@7.4.0_@types+react@19.2.6_react-dom@19.2.0_react@19.2.0__re_6599cd031faaab6a0d3e62e5be2e50e3/node_modules/@prisma/client/runtime/client.js:75:5816)
Backend Server | at async /dist/backend/dist/src/team-request/team-request.service.js:128:25
Backend Server | at async Proxy.transactionWithCallback (/dist/backend/node_modules/.pnpm/@prisma+client@7.4.0_prisma@7.4.0@types+react@19.2.6_react-dom@19.2.0_react@19.2.0__re_6599cd031faaab6a0d3e62e5be2e50e3/node_modules/@prisma/client/runtime/client.js:75:4390)
Backend Server | at async TeamRequestService.deleteTeamRequest (/dist/backend/dist/src/team-request/team-request.service.js:119:13)
Backend Server | at async TeamRequestResolver.deleteRequest (/dist/backend/dist/src/team-request/team-request.resolver.js:111:27) {
Backend Server | code: 'P2002',
Backend Server | meta: {
Backend Server | modelName: 'TeamRequest',
Backend Server | driverAdapterError: [DriverAdapterError]
Backend Server | },
Backend Server | clientVersion: '7.4.0'
Backend Server | },
Backend Server | status: 409,
Backend Server | options: {}
Backend Server | }
Backend Server | [Nest] 15 - 03/02/2026, 12:27:34 PM ERROR [ExceptionsHandler] Error: team_req/not_found
Backend Server | at throwErr (/dist/backend/dist/src/utils.js:68:11)
Backend Server | at TeamRequestResolver.deleteRequest (/dist/backend/dist/src/team-request/team-request.resolver.js:113:34)
Backend Server | at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
Backend Server | ::1 POST /graphql 200 - 8.613 ms
Deployment Type
Hoppscotch Cloud
Version
No response