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

is Streaming Supported or publish yet? #5406

Closed
AliBasicCoder opened this issue Jul 7, 2022 · 4 comments · Fixed by #5407
Closed

is Streaming Supported or publish yet? #5406

AliBasicCoder opened this issue Jul 7, 2022 · 4 comments · Fixed by #5407

Comments

@AliBasicCoder
Copy link

Describe the problem

i treid to send a ReadableStream but i got this message Invalid response from route /api/images/62c742cefb7c36c7c11bd9e8: body must be an instance of string or Uint8Array if content-type is not a supported textual content-type

using

"@sveltejs/adapter-node": "^1.0.0-next.78",
"@sveltejs/kit": "^1.0.0-next.357"

my code was something like this

const stream = /* get stream */
console.log(stream instanceof ReadableStream); // => true

Describe the proposed solution

IDK?

Alternatives considered

No response

Importance

would make my life easier

Additional Information

No response

@Rich-Harris
Copy link
Member

whoops! The guard is a holdover from when we didn't support streaming. Should be fixed by #5407

@AliBasicCoder
Copy link
Author

whoops! The guard is a holdover from when we didn't support streaming. Should be fixed by #5407

maybe this question is too early
But will this by fixed next release?

@Rich-Harris
Copy link
Member

as soon as #5407 is merged (pending review by another maintainer) it will trigger a changesets PR; merging that will create a new release

@AliBasicCoder
Copy link
Author

as soon as #5407 is merged (pending review by another maintainer) it will trigger a changesets PR; merging that will create a new release

awesome

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

Successfully merging a pull request may close this issue.

2 participants