-
-
Notifications
You must be signed in to change notification settings - Fork 37.5k
http.ServerResponse is not an instance of stream.Writable? #44188
Copy link
Copy link
Closed
restatedev/sdk-typescript
#426Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.httpIssues and PRs related to the http subsystem.Issues and PRs related to the http subsystem.streamIssues and PRs related to Node.js streams.Issues and PRs related to Node.js streams.web streamsIssues and PRs related to the Web Streams API.Issues and PRs related to the Web Streams API.
Description
Activity
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.httpIssues and PRs related to the http subsystem.Issues and PRs related to the http subsystem.streamIssues and PRs related to Node.js streams.Issues and PRs related to Node.js streams.web streamsIssues and PRs related to the Web Streams API.Issues and PRs related to the Web Streams API.
Version
18.7.0
Platform
Microsoft Windows NT 10.0.19044.0 x64
Subsystem
stream
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior?
According to the documentation:
This means that
ServerResponsefulfilling the contractWritable.toWeb.What do you see instead?
TypeError [ERR_INVALID_ARG_TYPE]: The "streamWritable" argument must be an stream.Writable. Received an instance of ServerResponse at new NodeError (node:internal/errors:387:5) at Object.newWritableStreamFromStreamWritable (node:internal/webstreams/adapters:99:11) at Writable.toWeb (node:internal/streams/writable:926:27)Additional information
Maybe this condition:
is too heavy?