GithubHelp home page GithubHelp logo

Comments (4)

timostamm avatar timostamm commented on August 27, 2024 1

Node v18 stopped hiding it's fetch() implementation behind the --experimental-global-fetch flag. But the fetch() implementation was still a bit buggy. I don't remember what the problem was exactly, looks like fetch() wasn't accepting a Headers object, only a plain object literal.

The solution is to update to a more recent release of Node.js that doesn't have this bug. Fetch is "experimental" until v21, although I'm not aware of any issues with the current LTS v20.

from connect-es.

timostamm avatar timostamm commented on August 27, 2024

This is probably bug in the version of undici (the fetch implementation) used by Node.js v18.1. It is not present in v18.0, or v18.2+. BTW, we're running all tests in headless chrome, but also in Node.js v18.2, see the Makefile.

from connect-es.

mfridman avatar mfridman commented on August 27, 2024

Ouch, bad version. Will upgrade to the latest Node version and test it out. Closing for now.

from connect-es.

sonnysideup avatar sonnysideup commented on August 27, 2024

What was the actual problem and/or solution here?

from connect-es.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.