question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

Command: 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:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
pantharshit00commented, Feb 18, 2021

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.

1reaction
pantharshit00commented, Feb 15, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found