Coder Social home page Coder Social logo

Comments (6)

sheenasany avatar sheenasany commented on June 25, 2024 2

Still having this error with students who are trying to pass the first test, even though the post request is working on the DOM.

Uncaught TypeError [ERR_INVALID_ARG_TYPE]: The "stream" argument must be an instance of Stream. Received an instance of Socket

A suggestion that could fix this issue would be to downgrade your node version. Like so:
nvm install 16.14.2
nvm alias default 16.14.2

Or! If you're still working on this lab, just want to downgrade your current version just for this lab, try this:
nvm install 16.14.2
nvm use 16.14.2

You could also delete the node modules and the package-lock file and reinstall dependencies.

That should fix the issue and get the tests to pass or just make the tests easier to read.

from phase-1-sending-data-with-fetch.

miShelbyT avatar miShelbyT commented on June 25, 2024

Just wanted to echo this error. I am experiencing it as well: Uncaught TypeError [ERR_INVALID_ARG_TYPE]: The "stream" argument must be an instance of Stream. Received an instance of Socket.
I don't know much about Stream instances. Reading this resource and feeling confused as to why we are getting a websocket instead of a Stream instance?

from phase-1-sending-data-with-fetch.

ocole161 avatar ocole161 commented on June 25, 2024

Had the same issue.

from phase-1-sending-data-with-fetch.

zigzagoon1 avatar zigzagoon1 commented on June 25, 2024

I had the same problem!

from phase-1-sending-data-with-fetch.

codified45 avatar codified45 commented on June 25, 2024

Issue still persists.

Downgrading node to 16.14.2 as referenced above did the trick. Thanks for the advice!
You can check your version of node by running this command in your terminal:

node -v

and then you can downgrade with these commands:

nvm install 16.14.2
nvm use 16.14.2

then after you complete the lab you can change back to your current version:

nvm use [version number listed when you ran first command]

from phase-1-sending-data-with-fetch.

lizbur10 avatar lizbur10 commented on June 25, 2024

Hey all! Thanks for all the help with this issue. It should now be fixed and should work with either Node 16 or Node 18 🙏

from phase-1-sending-data-with-fetch.

Related Issues (4)

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.