Introspection: `byte index 1 is out of bounds of ''`
See original GitHub issueCommand: prisma introspect
Version: 2.3.0
Binary Version: e11114fa1ea826f9e7b4fa1ced34e78892fe8e0e
Report: https://prisma-errors.netlify.app/report/9256
OS: x64 linux 4.15.0-88-generic
JS Stacktrace:
Error: [/rustc/c7087fe00d2ba919df1d813c040a5d47e43b0fe7/src/libcore/str/mod.rs:1920:47] byte index 1 is out of bounds of ``
at IntrospectionEngine.<anonymous> (/home/.../Desktop/.../apps/api-server/node_modules/@prisma/cli/build/index.js:2:1768173)
at Generator.throw (<anonymous>)
at rejected (/home/.../Desktop/.../apps/api-server/node_modules/@prisma/cli/build/index.js:2:1765186)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
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/c7087fe00d2ba919df1d813c040a5d47e43b0fe7/src/libstd/panicking.rs:515
3: rust_begin_unwind
at /rustc/c7087fe00d2ba919df1d813c040a5d47e43b0fe7/src/libstd/panicking.rs:419
4: core::panicking::panic_fmt
at /rustc/c7087fe00d2ba919df1d813c040a5d47e43b0fe7/src/libcore/panicking.rs:111
5: core::str::slice_error_fail
6: core::str::traits::<impl core::slice::SliceIndex<str> for core::ops::range::Range<usize>>::index::{{closure}}
7: sql_schema_describer::mysql::unescape_and_unquote_default_string
8: <sql_schema_describer::mysql::SqlSchemaDescriber as sql_schema_describer::SqlSchemaDescriberBackend>::describe::__describe::{{closure}}
9: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
10: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
11: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
12: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
13: <futures_util::compat::compat03as01::Compat<Fut> as futures::future::Future>::poll
14: <futures::future::map::Map<A,F> as futures::future::Future>::poll
15: <futures::future::either::Either<A,B> as futures::future::Future>::poll
16: <futures::future::lazy::Lazy<F,R> as futures::future::Future>::poll
17: futures::future::chain::Chain<A,B,C>::poll
18: <futures::future::then::Then<A,B,F> as futures::future::Future>::poll
19: <futures::future::map::Map<A,F> as futures::future::Future>::poll
20: <futures::future::either::Either<A,B> as futures::future::Future>::poll
21: <futures::future::map::Map<A,F> as futures::future::Future>::poll
22: futures::task_impl::std::set
23: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
24: tokio::runtime::enter::Enter::block_on
25: tokio::runtime::context::enter
26: tokio::runtime::handle::Handle::enter
27: introspection_engine::main
28: std::rt::lang_start::{{closure}}
29: std::rt::lang_start_internal::{{closure}}
at /rustc/c7087fe00d2ba919df1d813c040a5d47e43b0fe7/src/libstd/rt.rs:52
std::panicking::try::do_call
at /rustc/c7087fe00d2ba919df1d813c040a5d47e43b0fe7/src/libstd/panicking.rs:331
std::panicking::try
at /rustc/c7087fe00d2ba919df1d813c040a5d47e43b0fe7/src/libstd/panicking.rs:274
std::panic::catch_unwind
at /rustc/c7087fe00d2ba919df1d813c040a5d47e43b0fe7/src/libstd/panic.rs:394
std::rt::lang_start_internal
at /rustc/c7087fe00d2ba919df1d813c040a5d47e43b0fe7/src/libstd/rt.rs:51
30: main
31: __libc_start_main
32: <unknown>
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Why am I getting Index 1 out of bounds for length 1 exception?
This error occurs mostly in all programming languages. This is related to array or list. Reason: you are trying to access particular element...
Read more >c# - Why do i get out of bounds when using FileStream.Write?
Offset and length were out of bounds for the array or count is greater than the number of elements from index to the...
Read more >Index was outside the bounds of the array - Microsoft Q&A
An IndexOutOfRangeException exception is thrown when an invalid index is used to access a member of an array or a collection, or to...
Read more >Program Introspection - OpenGL Wiki - Khronos Group
Program Introspection is a mechanism for taking a program object and querying information ... One value for each uniform index is generated.
Read more >Strange behavior in java.io.InputStream - Cafe au Lait
This method reads length bytes of data from the input stream into the array input beginning at the index offset . Now consider...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@divyenduz I am unable to reproduce it. See https://github.com/prisma/migrate/issues/510#issuecomment-670480085
We recently implemented a fix for default value parsing on MySQL variants. Since then we cannot reproduce this anymore. I am closing this therefore.