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

invalid error: [StreamSaver] You didn't send a messageChannel #338

Open
tra4less opened this issue Feb 26, 2024 · 2 comments
Open

invalid error: [StreamSaver] You didn't send a messageChannel #338

tra4less opened this issue Feb 26, 2024 · 2 comments

Comments

@tra4less
Copy link

Streamsaver focuses messages generated by other libraries, causing invalid error

StreamSaver.js/mitm.html

Lines 61 to 71 in 5b372f7

let { data, ports, origin } = event
// It's important to have a messageChannel, don't want to interfere
// with other simultaneous downloads
if (!ports || !ports.length) {
throw new TypeError("[StreamSaver] You didn't send a messageChannel")
}
if (typeof data !== 'object') {
throw new TypeError("[StreamSaver] You didn't send a object")
}

@JYbill
Copy link

JYbill commented Apr 15, 2024

#234
I have solved the problem in this way, maybe you can try it.

@caenderl
Copy link

caenderl commented May 8, 2024

The download works and if this error would appear only once on console, it would be okay. But it prints the error like crazy and my only workaround at the moment is a page reload after the download which is definitely not a solution.
Happy for any possibly better workaround or a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants