Cannot read property 'isCanceled' of undefined
See original GitHub issueBug description
/Users/luca/projects/ws-backend/node_modules/@prisma/client/runtime/index.js:26190
if (this.currentRequestPromise.isCanceled) {
^
TypeError: Cannot read property 'isCanceled' of undefined
at NodeEngine.handleRequestError (/Users/luca/projects/ws-backend/node_modules/@prisma/client/runtime/index.js:26190:40)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:93:5)
at /Users/luca/projects/ws-backend/node_modules/@prisma/client/runtime/index.js:26855:25
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
How to reproduce
I really don’t know, since this seems to happen very rarely and not consistently. 😦
Since there are no stack traces, I can only guess where it originated. From my own logs I had at the time the error occurred, it looks like it happened with prisma.$transaction
.
Expected behavior
Prisma information
Environment & setup
- OS:
- Database:
- Node.js version:
- Prisma version:
@prisma/cli : 2.14.0
@prisma/client : 2.14.0
Current platform : darwin
Query Engine : query-engine 5d491261d382a2a5ffdc71de17072b0e409f1cc1 (at node_modules/@prisma/engines/query-engine-darwin)
Migration Engine : migration-engine-cli 5d491261d382a2a5ffdc71de17072b0e409f1cc1 (at node_modules/@prisma/engines/migration-engine-darwin)
Introspection Engine : introspection-core 5d491261d382a2a5ffdc71de17072b0e409f1cc1 (at node_modules/@prisma/engines/introspection-engine-darwin)
Format Binary : prisma-fmt 5d491261d382a2a5ffdc71de17072b0e409f1cc1 (at node_modules/@prisma/engines/prisma-fmt-darwin)
Studio : 0.332.0
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (2 by maintainers)
Top Results From Across the Web
TypeError: Cannot read properties of undefined (reading 'find ...
I learning how to use javascript to work with the mongodb database, but I keep getting an error when initializing cursor.
Read more >Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError : Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >How to Prevent the Error: Cannot Read Property '0' of Undefined
A guide on how to prevent the error "cannot Read Property '0' of Undefined", covering techniques such as try, catch, using const over...
Read more >Axios - npm
import axios, {isCancel, AxiosError} from 'axios'; ... returns `true` (or is set to `null` // or `undefined`), the promise will be resolved; ...
Read more >DevExtreme Complete 21.2.8 - ComponentSource
DataGrid - Uncaught TypeError : Cannot read properties of undefined (reading ... is thrown when adding a new row is canceled if 'repaintChangesOnly'=true....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
*edit: was resolved for me when I upgraded from
"@prisma/cli": "2.14.0" -> "2.17.0"
and"@prisma/client": "2.14.0" -> "2.17.0"
Sorry for late reply, I haven’t had time for it but it looks like the update to 2.17 helped me also