Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expected parent IDs to be set when ordering by parent #24043

Closed
romanwbruce opened this issue Apr 30, 2024 · 3 comments
Closed

Expected parent IDs to be set when ordering by parent #24043

romanwbruce opened this issue Apr 30, 2024 · 3 comments
Labels
bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/bug A reported bug. team/client Issue for team Client. topic: rust panic

Comments

@romanwbruce
Copy link

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

Versions

Name Version
Node v20.12.0
OS rhel-openssl-3.0.x
Prisma Client 5.11.0
Query Engine efd2449663b3d73d637ea1fd226bafbcf45b3102
Database mysql

Logs

prisma:tryLoadEnv Environment variables not found at null
prisma:tryLoadEnv Environment variables not found at undefined
prisma:tryLoadEnv No Environment variables loaded
prisma:client checkPlatformCaching:postinstall false
prisma:client checkPlatformCaching:ciName Vercel
prisma:tryLoadEnv Environment variables not found at null
prisma:tryLoadEnv Environment variables not found at undefined
prisma:tryLoadEnv No Environment variables loaded
prisma:client dirname /var/task/node_modules/.pnpm/@prisma+client@5.11.0_prisma@5.11.0/node_modules/.prisma/client
prisma:client relativePath ../../../../../../apps/dashboard/prisma
prisma:client cwd /var/task/node_modules/.pnpm/@prisma+client@5.11.0_prisma@5.11.0/node_modules/.prisma/client
prisma:client clientVersion 5.11.0
prisma:client:libraryEngine internalSetup
prisma:client:libraryEngine sending request, this.libraryStarted: false
prisma:get-platform Found distro info:
{
  "targetDistro": "rhel",
  "familyDistro": "rhel",
  "originalDistro": "amzn"
}
prisma:get-platform Trying platform-specific paths for "rhel"
prisma:get-platform Found libssl.so file using platform-specific paths: libssl.so.3
prisma:get-platform The parsed libssl version is: 3.0.x
prisma:client:engines:resolveEnginePath enginePath /var/task/node_modules/.pnpm/@prisma+client@5.11.0_prisma@5.11.0/node_modules/.prisma/client/libquery_engine-rhel-openssl-3.0.x.so.node
prisma:client:libraryEngine library starting
prisma:client:libraryEngine library started
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client checkPlatformCaching:postinstall false
prisma:client checkPlatformCaching:ciName Vercel
prisma:tryLoadEnv Environment variables not found at null
prisma:tryLoadEnv Environment variables not found at undefined
prisma:tryLoadEnv No Environment variables loaded
prisma:client dirname /var/task/node_modules/.pnpm/@prisma+client@5.11.0_prisma@5.11.0/node_modules/.prisma/client
prisma:client relativePath ../../../../../../apps/dashboard/prisma
prisma:client cwd /var/task/node_modules/.pnpm/@prisma+client@5.11.0_prisma@5.11.0/node_modules/.prisma/client
prisma:client clientVersion 5.11.0
prisma:client:libraryEngine internalSetup
prisma:client:engines:resolveEnginePath enginePath /var/task/node_modules/.pnpm/@prisma+client@5.11.0_prisma@5.11.0/node_modules/.prisma/client/libquery_engine-rhel-openssl-3.0.x.so.node
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true

Client Snippet

    slides = await prisma.slide.findMany({
        where: {
            id: (q != "" ? {
                in: ids
            } : {
            }),
            company: company != "" ? {
                contains: company
            } : {},
            sector: sector != "" ? {
                contains: sector
            } : {},
            year: year != "" ? {
                contains: year
            } : {},
        },
        include: {
            pitch: {
                select: {
                    id: true,
                    name: true,
                    views: true,
                    company: true,
                    created_at: true,
                    sector: true
                }
            }
        },
        take: 100
    });

Schema

model Slide {
  id       String           @id @default(uuid())
  pitch_id String?
  index    Int
  url      String
  text     String?          @db.LongText
  forum_id String?
  block_id String?
  forum    ForumDiscussion? @relation(fields: [forum_id], references: [id])
  block    Block?           @relation(fields: [block_id], references: [id])
  pitch    Pitch?           @relation(fields: [pitch_id], references: [id])
  items    CollectionItem[]

  industry String? @default("")
  sector   String? @default("")
  company  String? @default("")
  year     String? @default("")

  @@index([pitch_id])
  @@index([forum_id])
  @@index([sector])
  @@index([company])
  @@index([industry])
  @@index([block_id])
  @@fulltext([text])
}

Prisma Engine Query

{"X":true}}}}}
@SevInf SevInf added bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/bug A reported bug. topic: rust panic labels May 2, 2024
@SevInf
Copy link
Contributor

SevInf commented May 2, 2024

Hi @romanwbruce .

Could you provide the complete schema? IT is missing pitch model present in your query. Also, it would be really helpful if you can provide a sample of the data from the tables.

Thank you!

@SevInf SevInf added the team/client Issue for team Client. label May 2, 2024
@jkomyno
Copy link
Contributor

jkomyno commented May 17, 2024

Hi @romanwbruce, could you please reply to @SevInf's comment above?
That information would be very important for us to evaluate, investigate - and possibly solve - this issue. Thanks!

@Jolg42
Copy link
Member

Jolg42 commented May 27, 2024

With the lack of information and our inability to reproduce this issue, we're now closing it. Feel free to comment if you have any updates about it.

Thank you 🙏

@Jolg42 Jolg42 closed this as not planned Won't fix, can't repro, duplicate, stale May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/bug A reported bug. team/client Issue for team Client. topic: rust panic
Projects
None yet
Development

No branches or pull requests

4 participants