Ask coding questions

← Back to all posts
NodeJS - Couldn't reach repl
ChezCoder (1606)

When I run my nodejs project, the section that displays the HTML result says:

Hmmmm.... We Couldn't Reach Your Repl
Make sure your repl has a port open and is ready to receive HTTP traffic.

why?

Answered by Giothecoder (141) [earned 5 cycles]
View Answer
Comments
hotnewtop
Giothecoder (141)

Ah it’s that handler is undefed, I can fix that for you rn lol.

Edit: wait no it’s because of where your putting the listen statement (before the actual function definition) I think.

Edit2: oh lol it’s because you were trying to use the actual http port. You’ll have to listen on 8080 (like I did for you) or on 3000 or something like that.

Giothecoder (141)

@ChezCoder ya lol.
*yw sry not ya, but sure that too.

Giothecoder (141)

@ChezCoder ok I’m back. Which repl shall we go to?

Giothecoder (141)

@ChezCoder hm. I can’t chat on it

Giothecoder (141)

@ChezCoder ping me if you get back.

Giothecoder (141)

@ChezCoder ok, so it’s not loading for me anymore XD. Ok I’m try one more time get it..

Giothecoder (141)

@ChezCoder XD. Ok here goes nothing.

Giothecoder (141)

@ChezCoder (-_-) it crashed. Again.

Giothecoder (141)

@ChezCoder Imma just reboot again. Nothing else seems to work. 😞

Giothecoder (141)

@ChezCoder I can open it now, but it’s unresponsive. imma try a diff repl. I’m going to stuff

Giothecoder (141)

@ChezCoder oh oops ok going there lol

Giothecoder (141)

@ChezCoder uh. So. I just sat there for like forever and no text back, so I’m assuming my repl’s fed?

ChezCoder (1606)

@Giothecoder omg im so sorry i was inhaling dinner

Giothecoder (141)

@ChezCoder XD XD XD OMG
I’m dying lol XD

Giothecoder (141)

@ChezCoder that is completely ok lol. I’ll see you in the repl :) :P

Giothecoder (141)

@ChezCoder ok. So. Thing is messed up again. Rebooting

Giothecoder (141)

@ChezCoder @StealthHydra179 okie. Ya’ll just ping me when ya’ll get back I guess :( XD

Giothecoder (141)

@ChezCoder soon. Gotta inhale dinner.

ChezCoder (1606)

@StealthHydra179 sry currently in health and social studies

ChezCoder (1606)

@StealthHydra179 oh sorry ill be on in a sec. I got homework do to so yeah

ChezCoder (1606)

@StealthHydra179 also which file u on? clicker or wiki?

Giothecoder (141)

@ChezCoder O.o I have 16 notifications!! hi ok!

ChezCoder (1606)

@Giothecoder hello! Sorry i left, i had to go to sleep. are you on? if would be great to have you on, link to the repl

Giothecoder (141)

@ChezCoder hi! Sorry, I had a choir thing. Sure yeah I’ll hop on!

Giothecoder (141)

@ChezCoder what is school.exe gonna do?

ChezCoder (1606)

@Giothecoder yooooo hows it goin? i shared u a repl, if ur online (plz be) :) :) :) :)

Giothecoder (141)

@ChezCoder I am online! Hi! So sorry I just woke up, my schedule has gone from
The normal 8am - 12pm to 4pm - 4am. Literally. Going to repl now lol.

Giothecoder (141)

@ChezCoder ping me when your back.

Giothecoder (141)

@ChezCoder ping! Sorry just woke up.

Giothecoder (141)

@ChezCoder I’m at the disco, now sry.

Giothecoder (141)

@ChezCoder I’m sorry I did it again :(((((
I am here sorry. Me iPad went wacky doodle and then I got email sry. But I’m back.

ChezCoder (1606)

@Giothecoder pinnggggggggggggggggg :D:D:D:D:D:D:D:D
reply something you want to work on:

  • discord bot
  • machine learning
  • chatroom via python + php
ChezCoder (1606)

@Giothecoder sure :) also, one more option, Pseudocode compiler

Giothecoder (141)

@ChezCoder UwU that sounds cool actually how about that

ChezCoder (1606)

@Giothecoder hey hows it goin u joined and left so. :DDDDD

ChezCoder (1606)

@Giothecoder hihihhihhihiiihhihihiihiihihihihhiihihhihihiihihihii pseudocode

ChezCoder (1606)

@Giothecoder helloooooooooooo hows it going, choices:

  • ChatRoom; Python & PHP
  • Pseudocode Compiler; Python
  • Discord Bot; NodeJS
  • Machine Learning; Python
Highwayman (1499)

@ChezCoder hi?

Oh btw I have school tmrw.
I think.

Giothecoder (141)

@ChezCoder almost done be right there...

ChezCoder (1606)

@Giothecoder hey ho hey ho hey ho hey ho
@Highwayman hey ho hey ho hey ho hey ho

ChezCoder (1606)

@Giothecoder ummmb hiihiihiihihihhihi
pleaseeee

Giothecoder (141)

@ChezCoder I think we’re in the clear. I think we can code.

Giothecoder (141)

@ChezCoder ping me if you see this. I’ll be in the duo

ChezCoder (1606)

@Giothecoder ping a ping ring :D ill be at the duo :D :D :DDDDDD

ChezCoder (1606)

@Giothecoder plz be on, I only have like 10 minutes

ChezCoder (1606)

@Giothecoder or @Highwayman can you plz reply if ur online

kingcoder345 (0)

@Giothecoder
Could to help me I have the same problem please hepp

Giothecoder (141)

Ok ok ok so. so. So,,,,, I didn’t think of this before, but since we are using express, we can use a "view engine" type thing and.... guess what, we can use pHp as the view engine!!! Cool right? What do ya think?

ChezCoder (1606)

@Giothecoder actually, I kinda want to work with some PHP so do you want to maybe just do everything on HTML CSS JS and PHP? You said you wanted to learn some PHP so you will learn stuff in the process!

ChezCoder (1606)

@ChezCoder lol look at my storage used:

Giothecoder (141)

@ChezCoder you have like 10 times the allowed data 😂😂.
Sure, why were you doing it in node if you could have done it in socket.io anyways?

ChezCoder (1606)

@Giothecoder guess what, it still allows me to create projects, ULIMITED STORAGE!

Giothecoder (141)

@ChezCoder wait you have the hacker plan?

ChezCoder (1606)

@Giothecoder no, this storage bug gives me infinite storage for some reason lol

ChezCoder (1606)

@Giothecoder i might be on after. my school ends at 4:00 :)

Giothecoder (141)

@ChezCoder hm... what time is it near you? I think we might have a time diff, seeing as It’s past 4 for me..

Giothecoder (141)

@ChezCoder duuude why’d you ping me and leave lol.

ChezCoder (1606)

@Giothecoder oh wait sry i invited u to a colab :) also why u suddenly leave?

Giothecoder (141)

@ChezCoder uh. So.
My parents.
Just turned off.
My.
(37d*&’$
MODEM!
I was like, WHAT.
Sorry about that. Coming back now lol.

Giothecoder (141)

@ChezCoder so sorry I didn’t see them. You still up for it?

Giothecoder (141)

@ChezCoder hi, I might be a while. I just have to finish up one more hw, then I’ll ping you sorry.

Giothecoder (141)

@ChezCoder I’m actually thinking I might not finish in time actually. :(

Giothecoder (141)

@ChezCoder yeah no It’s not gonna be finished in time. Maybe tmrw morning.

Giothecoder (141)

@ChezCoder
F wait hi hello so sorry it just showed up

Giothecoder (141)

@ChezCoder I think I went to the wrong one. Which one are we at?

Giothecoder (141)

@ChezCoder Oh um hi. Ok! See you there...?

ChezCoder (1606)

@StealthHydra179 yes some php. I taught him the basics

Giothecoder (141)

@StealthHydra179 technically? Chez taught me some PHP recently, but I wouldn’t say I can really code in it. Maybe.

Giothecoder (141)

It’s the chat room, right? The thing is, you are getting an error. It’s probably that __dirname isn’t defined. Also do you want to work on the chat for a bit?

Highwayman (1499)

Please post your repl so we can help you more effectively.

ChezCoder (1606)

@Giothecoder and @Highwayman please please please please please please please please please please please please be online :(

Highwayman (1499)

@ChezCoder I am on .i am on are you on I’m sorry I just woke up I’m on

Giothecoder (141)

@ChezCoder ok so chat is broken I’m sorry I thought I’d get up in time also I only get an hr so I might be gone when you guys get back please ping me as son as possible I am so sorry for the mishap :((( ;-;

ChezCoder (1606)

@Giothecoder omgomgomgom hi hi hi hi ok hi

ChezCoder (1606)

Hi @Giothecoder , please reply as soon as possible thx!

ChezCoder (1606)

hi @Giothecoder and @Highwayman , i need to talk to u about something

Highwayman (1499)

@ChezCoder I yes sry I got blocked for all of yesterday :/

ChezCoder (1606)

@Highwayman oof im currently online need to talk w/ u here

ChezCoder (1606)

@MrEconomical, I was playing with your project EcoCode and well I gave the desired input for the challenge called "EEEEEEEE". The code worked but the autograder sucks:

n=1+"0".repeat(input);console.log(Math.round(Math.exp(1)*n)/n)
MrEconomical (2302)

@ChezCoder not enough decimal precision

MrEconomical (2302)

@ChezCoder the solution requires you to generate E up to a precision of about 500 decimals, vanilla javascript decimals are not that precise

ChezCoder (1606)

@MrEconomical ahh so ill have to replace Math.ext() with like something else?

MrEconomical (2302)

@ChezCoder think of a solution to generate the digits, pyelias did it so it is possible

Giothecoder (141)

I saw you posted a question are you still here? Can we code some?

ChezCoder (1606)

@Giothecoder you on? the duo : DDDDDDD

ChezCoder (1606)

@Giothecoder apparently my chat frooze so it looked like you were typing for like 30 minutes lol

ChezCoder (1606)

@Giothecoder ill prob be available after 5 or so, ping me after that and we can code or something

ChezCoder (1606)

@Giothecoder , want to make a discord bot with me? its nodejs so we talking ur language (get it?)

Giothecoder (141)

@ChezCoder lol. Sure. What happened with that other thing that you were making that you asked by alt about? What was it?

Giothecoder (141)

@ChezCoder chez I’m bacckkk I Sry I had to do something really quick but I’m back plz com bak ;’(

ChezCoder (1606)

@Giothecoder hello! Im in pseudocode. Also, stealth's on

ChezCoder (1606)

@Giothecoder hi! I made tic tac toe. Wanna help me make the ai for it?

ChezCoder (1606)

@Giothecoder hi, wanna respect the gods of lolcode and the cpu of a computer?

Giothecoder (141)

@ChezCoder hi hi hi hi h- wait what.

ChezCoder (1606)

@Giothecoder im working on an html css project, CPU simulator! Simulate a CPU of a computer :D

Giothecoder (141)

@ChezCoder ? Sounds a tad bit complicated, how are you gonna do that?

ChezCoder (1606)

@Giothecoder html css js, i have a plan in mind :D wanna do it?

ChezCoder (1606)

@Giothecoder hello! Good news! CPU sim
and bad news

ChezCoder (1606)

@Giothecoder sorry, my multiplayer chat isnt opening :(

Giothecoder (141)

@ChezCoder me neither it’s weird:/

Giothecoder (141)

@ChezCoder every time try to type in the repl it reloads the repl.

Giothecoder (141)

@ChezCoder :(((((( it’s fing annoying.

ChezCoder (1606)

@Giothecoder hello! Im done inhaling so :D

Giothecoder (141)

@ChezCoder ok I’ll be there in a bit but it might take a while

Giothecoder (141)

@ChezCoder ok bak. Should I go to meet or repl?

Giothecoder (141)

@ChezCoder :( my school disabled google meets >:( fing pricks.

Giothecoder (141)

@ChezCoder uh so my chat disappeared again

Giothecoder (141)

@ChezCoder ...chez? Did I miss u? :(

Giothecoder (141)

@ChezCoder oh, I can’t see you for some reason.

Giothecoder (141)

Sry that took wayyyy fing longer than expected. I had to wake up my brother :( @ChezCoder

Giothecoder (141)

@ChezCoder reaally sorry bout that, ping me when your back?

ChezCoder (1606)

@Giothecoder hiiii i sent u an invite, check ur notifications :DDD

ChezCoder (1606)

@Giothecoder guess what? repl finally updated nodejs to version 12!!!! YAY :DD

StealthHydra179 (23)

@Giothecoder Hey ,Gio, chez wanted me to ask how old u r

Giothecoder (141)

@StealthHydra179 that’s bc he doesn’t know lol. I’m a couple grades ahead of you guys basically.