question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'isCanceled' of undefined

See original GitHub issue

Bug 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
haririacommented, Feb 17, 2021

*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"

0reactions
Dreamystifycommented, Feb 25, 2021

Can you create a new issue please @Dreamystify? This sounds like a good enough reproduction that we could try it.

Sorry for late reply, I haven’t had time for it but it looks like the update to 2.17 helped me also

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found