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.

PANIC in query-engine/connectors/mongodb-query-connector/src/value.rs:100:24 not yet implemented: (ObjectId, List([String("609675d400e7693e0090e48c")]))

See original GitHub issue

Hi Prisma Team! My Prisma Client just crashed. This is the report:

Versions

Name Version
Node v16.0.0
OS darwin
Prisma Client 2.22.1
Query Engine query-engine 60cc71d884972ab4e897f0277c4b84383dddaf6c
Database undefined

Query

query {
  findManyDevice(where: {
    id: {
      in: ["X"]
    }
  }) {
    token
  }
}

Logs

tHub/reqas/SMSGateWayAPI/node_modules/.prisma/client  
  plusX Execution permissions of /Users/oudmane/Documents/GitHub/reqas/SMSGateWayAPI/node_modules/.prisma/client/query-engine-darwin are fine  
  prisma:engine Client Version: 2.22.1  
  prisma:engine Engine Version: query-engine 60cc71d884972ab4e897f0277c4b84383dddaf6c  
  prisma:engine Active provider: mongodb  
  prisma:engine Stopping Prisma engine4  
  prisma:engine Waiting for start promise  
  prisma:engine Done waiting for start promise  
  prisma:engine { cwd: '/Users/oudmane/Documents/GitHub/reqas/SMSGateWayAPI/prisma' }  +4s
  prisma:engine Search for Query Engine in /Users/oudmane/Documents/GitHub/reqas/SMSGateWayAPI/node_modules/.prisma/client  
  plusX Execution permissions of /Users/oudmane/Documents/GitHub/reqas/SMSGateWayAPI/node_modules/.prisma/client/query-engine-darwin are fine  +4s
  prisma:engine { flags: [ '--enable-raw-queries', '--port', '54364' ] }  
  prisma:engine stdout  Started http server on http://127.0.0.1:54364  
  prisma:engine Search for Query Engine in /Users/oudmane/Documents/GitHub/reqas/SMSGateWayAPI/node_modules/.prisma/client  
  plusX Execution permissions of /Users/oudmane/Documents/GitHub/reqas/SMSGateWayAPI/node_modules/.prisma/client/query-engine-darwin are fine  
  prisma:engine Client Version: 2.22.1  
  prisma:engine Engine Version: query-engine 60cc71d884972ab4e897f0277c4b84383dddaf6c  
  prisma:engine Active provider: mongodb  
  prisma:engine stdout  PANIC in query-engine/connectors/mongodb-query-connector/src/value.rs:100:24
not yet implemented: (ObjectId, List([String("609675d400e7693e0090e48c")]))  
  prisma:engine {
  prisma:engine   error: SocketError: other side closed
  prisma:engine       at Socket.onSocketEnd (/Users/oudmane/Documents/GitHub/reqas/SMSGateWayAPI/node_modules/@prisma/client/runtime/index.js:25530:24)
  prisma:engine       at Socket.emit (node:events:377:35)
  prisma:engine       at Socket.emit (node:domain:470:12)
  prisma:engine       at endReadableNT (node:internal/streams/readable:1312:12)
  prisma:engine       at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  prisma:engine     code: 'UND_ERR_SOCKET'
  prisma:engine   }
  prisma:engine }  
  prisma:engine {
  prisma:engine   error: Error: connect ECONNREFUSED 127.0.0.1:54364
  prisma:engine       at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1133:16) {
  prisma:engine     errno: -61,
  prisma:engine     code: 'ECONNREFUSED',
  prisma:engine     syscall: 'connect',
  prisma:engine     address: '127.0.0.1',
  prisma:engine     port: 54364
  prisma:engine   }
  prisma:engine }  
  prisma:engine { cwd: '/Users/oudmane/Documents/GitHub/reqas/SMSGateWayAPI/prisma' }  
  prisma:engine Search for Query Engine in /Users/oudmane/Documents/GitHub/reqas/SMSGateWayAPI/node_modules/.prisma/client  
  plusX Execution permissions of /Users/oudmane/Documents/GitHub/reqas/SMSGateWayAPI/node_modules/.prisma/client/query-engine-darwin are fine  
  prisma:engine { flags: [ '--enable-raw-queries', '--port', '54369' ] }  
  prisma:engine stdout  Started http server on http://127.0.0.1:54369  
  prisma:engine Search for Query Engine in /Users/oudmane/Documents/GitHub/reqas/SMSGateWayAPI/node_modules/.prisma/client  
  plusX Execution permissions of /Users/oudmane/Documents/GitHub/reqas/SMSGateWayAPI/node_modules/.prisma/client/query-engine-darwin are fine  
  prisma:engine stdout  PANIC in query-engine/connectors/mongodb-query-connector/src/value.rs:100:24
not yet implemented: (ObjectId, List([String("609675d400e7693e0090e48c")]))  
  prisma:engine {
  prisma:engine   error: SocketError: other side closed
  prisma:engine       at Socket.onSocketEnd (/Users/oudmane/Documents/GitHub/reqas/SMSGateWayAPI/node_modules/@prisma/client/runtime/index.js:25530:24)
  prisma:engine       at Socket.emit (node:events:377:35)
  prisma:engine       at Socket.emit (node:domain:470:12)
  prisma:engine       at endReadableNT (node:internal/streams/readable:1312:12)
  prisma:engine       at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  prisma:engine     code: 'UND_ERR_SOCKET'
  prisma:engine   }
  prisma:engine }  

Client Snippet

prisma.device.findMany({
        where: {
            id: {in: ["609675d400e7693e0090e48c"]}
        },
        select: {
            token: true
        }
    })

Schema

model Device {
  id         String     @id @default(dbgenerated()) @map("_id") @db.ObjectId
  token      String?
  version    String?
  number     String?
  priority   Int?
  operators  Int[]
  createdAt  DateTime   @default(now())
  updatedAt  DateTime   @updatedAt
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
oudmanecommented, May 10, 2021

Yes, I’m using mongodb provider. I’m trying bit on a side project, and found this bug.

0reactions
dpetrickcommented, Jul 16, 2021

Fixed in 2.28.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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