Skip to content

Error: [libs\datamodel\core\src\transform\dml_to_ast\mod.rs:74:59] called Option::unwrap() on a None value #12033

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

Closed
tomhoule opened this issue Feb 25, 2022 · 6 comments · Fixed by prisma/prisma-engines#2791
Assignees
Labels
bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. domain/schema Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc. kind/bug A reported bug. topic: error reporting Issues created via Prisma's CLI Crash Reporting topic: introspection topic: mysql topic: prisma db pull CLI: prisma db pull topic: STATE ERROR BOOP
Milestone

Comments

@tomhoule
Copy link
Contributor

tomhoule commented Feb 25, 2022

Command: prisma db pull
Version: 3.10.0
Binary Version: 73e60b76d394f8d37d8ebd1f8918c79029f0db86
Report: https://prisma-errors.netlify.app/report/13676
OS: x64 win32 10.0.19043

JS Stacktrace:

Error: [libs\datamodel\core\src\transform\dml_to_ast\mod.rs:74:59] called `Option::unwrap()` on a `None` value
    at ChildProcess.<anonymous> (C:\<..>node_modules\prisma\build\index.js:46135:30)
    at ChildProcess.emit (events.js:400:28)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12)

Rust Stacktrace:

   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <unknown>
  18: <unknown>
  19: <unknown>
  20: <unknown>
  21: <unknown>
  22: <unknown>
  23: <unknown>
  24: <unknown>
  25: <unknown>
  26: <unknown>
  27: <unknown>
  28: <unknown>
  29: <unknown>
  30: <unknown>
  31: <unknown>
  32: <unknown>
  33: <unknown>
  34: BaseThreadInitThunk
  35: RtlUserThreadStart

@tomhoule tomhoule added kind/bug A reported bug. process/candidate topic: error reporting Issues created via Prisma's CLI Crash Reporting domain/schema Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc. labels Feb 25, 2022
@tomhoule
Copy link
Contributor Author

@pimeys investigated, and it's an index referencing a field not in the model. It's the same category of errors as the STATE ERROR BOOP errors, probably due to a permissions issue.

@tomhoule
Copy link
Contributor Author

They're all on mysql.

@strazi

This comment was marked as off-topic.

@tomhoule

This comment was marked as off-topic.

@janpio janpio added bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. topic: mysql labels Feb 25, 2022
@strazi

This comment was marked as off-topic.

@chanlito

This comment was marked as off-topic.

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. domain/schema Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc. kind/bug A reported bug. topic: error reporting Issues created via Prisma's CLI Crash Reporting topic: introspection topic: mysql topic: prisma db pull CLI: prisma db pull topic: STATE ERROR BOOP
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants