Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Deno process crashes while using node-fetch 2.x.x #1725

Copy link
Copy link

Description

@joamag
Issue body actions

Using deno (which now supports npm packages) and node-fetch 2.x.x yields an unhandled error due to "socket" event not being triggered.

I believe keeping deno compatibility is not a priority but a simple undefined testing in the socket variable should fix the issue.

Reproduction

Steps to reproduce the behavior:

  1. Use deno and node-fetch
  2. Perform a simple fetch operation (ex: GET)
  3. Verify that the deno process has exited with an Uncaught error on fixResponseChunkedTransferBadEnding()

Expected behavior

No unhandled error is raised and the fetch requests are handled properly.

Screenshots

image

Your Environment

software version
node-fetch v2.6.8+
deno v1.31.3
Operating System Windows

Additional context

This is verified only while using deno and not in node.js.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.