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

Better error when introspecting MongoDB #8012

Closed
pimeys opened this issue Jul 2, 2021 · 0 comments · Fixed by prisma/prisma-engines#2066
Closed

Better error when introspecting MongoDB #8012

pimeys opened this issue Jul 2, 2021 · 0 comments · Fixed by prisma/prisma-engines#2066
Assignees
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. team/schema Issue for team Schema. topic: error reporting Issues created via Prisma's CLI Crash Reporting topic: mongodb
Milestone

Comments

@pimeys
Copy link
Contributor

pimeys commented Jul 2, 2021

Command: prisma introspect
Version: 2.26.0-dev.49
Binary Version: 9b816b3aa13cc270074f172f30d6eda8a8ce867d
Report: https://prisma-errors.netlify.app/report/13392
OS: x64 linux 5.4.0-1033-gke

JS Stacktrace:

Error: [/root/.cargo/git/checkouts/quaint-9f01e008b9a89c14/9f5860e/src/single.rs:159:18] not implemented: Supported url schemes: file or sqlite, mysql, postgresql or jdbc:sqlserver.
    at ChildProcess.<anonymous> (/workspace/e2e-tests/databases/mongodb-digitalocean/node_modules/prisma/build/index.js:40005:28)
    at ChildProcess.emit (events.js:376:20)
    at ChildProcess.emit (domain.js:470:12)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)

Rust Stacktrace:

   0: user_facing_errors::Error::new_in_panic_hook
   1: user_facing_errors::panic_hook::set_panic_hook::{{closure}}
   2: std::panicking::rust_panic_with_hook
             at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/std/src/panicking.rs:595:17
   3: std::panicking::begin_panic_handler::{{closure}}
             at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/std/src/panicking.rs:497:13
   4: std::sys_common::backtrace::__rust_end_short_backtrace
             at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/std/src/sys_common/backtrace.rs:141:18
   5: rust_begin_unwind
             at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/std/src/panicking.rs:493:5
   6: core::panicking::panic_fmt
             at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/core/src/panicking.rs:92:14
   7: quaint::single::Quaint::new::{{closure}}
   8: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   9: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  10: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
  11: <futures_util::future::future::Then<Fut1,Fut2,F> as core::future::future::Future>::poll
  12: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
  13: introspection_engine::main::{{closure}}
  14: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  15: introspection_engine::main
  16: std::sys_common::backtrace::__rust_begin_short_backtrace
  17: std::rt::lang_start::{{closure}}
  18: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
             at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/core/src/ops/function.rs:259:13
      std::panicking::try::do_call
             at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/std/src/panicking.rs:379:40
      std::panicking::try
             at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/std/src/panicking.rs:343:19
      std::panic::catch_unwind
             at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/std/src/panic.rs:431:14
      std::rt::lang_start_internal
             at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/std/src/rt.rs:34:21
  19: std::rt::lang_start
  20: __libc_start_main
  21: <unknown>

@pimeys pimeys added bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. labels Jul 2, 2021
@pimeys pimeys added this to the 2.27.0 milestone Jul 2, 2021
@pimeys pimeys self-assigned this Jul 2, 2021
@janpio janpio added topic: error reporting Issues created via Prisma's CLI Crash Reporting topic: mongodb team/schema Issue for team Schema. labels Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. team/schema Issue for team Schema. topic: error reporting Issues created via Prisma's CLI Crash Reporting topic: mongodb
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants