Error: Error in migration engine. Reason: [migration-engine\cli\src/main.rs:68:41] called `Result::unwrap()` on an `Err` value: Custom { kind: InvalidData, error: "stream did not contain valid UTF-8" }
See original GitHub issueCommand: prisma migrate dev --preview-feature
Version: 2.16.0
Binary Version: 854c8ba7f0dce66f115af36af24e66989a8c02a1
Report: https://prisma-errors.netlify.app/report/12944
OS: x64 win32 10.0.19041
JS Stacktrace:
Error: Error in migration engine.
Reason: [migration-engine\cli\src/main.rs:68:41] called `Result::unwrap()` on an `Err` value: Custom { kind: InvalidData, error: "stream did not contain valid UTF-8" }
Please create an issue with your `schema.prisma` at
https://github.com/prisma/prisma/issues/new
at ChildProcess.<anonymous> (C:\Users\kaTeilX\AppData\Roaming\npm\node_modules\prisma\build\index.js:54621:23)
at ChildProcess.emit (events.js:210:5)
at ChildProcess.EventEmitter.emit (domain.js:475:20)
at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
Rust Stacktrace:
[migration-engine\cli\src/main.rs:68:41] called `Result::unwrap()` on an `Err` value: Custom { kind: InvalidData, error: "stream did not contain valid UTF-8" }
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
What does "Stream did not contain valid UTF-8" mean?
Whatever image you have tried to load contains a sequence of bytes that cannot be interpreted as a UTF-8 string; this is what...
Read more >How can I fix the UTF-8 error when bulk uploading users?
When I tried to bulk upload users, I received the following error message: For some reason, the data to import was not ready...
Read more >How to take care of non UTF8 input : r/rust - Reddit
Hi folks,. I try to read from stdin but I keep running into this error: stream did not contain valid UTF-8.
Read more >[SOLVED] Stream did not contain valid UTF-8 - help
let args: Vec<String> = env::args().collect(); let path = Path::new(&args[0]); let mut file = File::open(&path).expect("FILE NOT FOUND"); ...
Read more >Creating a valid UTF-8 CSV File for importing - PractiTest
This is especially important for non-English characters. MS-Excel is known to save CSV files in different encoding standards, depending on the OS of...
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

Yeah, that is what we will do but we also need to propagate this upto the javascript client. We have some macros in the codebase for that.
@safinsingh Yes, we are aware of that. Issue is automatically collected from the cli so @divyenduz is not the user here.
We are more concerned about the panic. Engine panic should never happen as we try to handle all errors gracefully.