N
Novuβ€’14mo ago
Aman Jain

not able to login on localhost showing error "network error"

how to check mongo is running or not ?
130 Replies
Novu_Bot
Novu_Botβ€’14mo ago
@Aman Jain, you just advanced to level 1!
Aman Jain
Aman JainOPβ€’14mo ago
@Pawan Jain are you there
ninja7
ninja7β€’14mo ago
is docker running? @Aman Jain
Aman Jain
Aman JainOPβ€’14mo ago
no i am using local setup @ninja7
ninja7
ninja7β€’14mo ago
if you use docker, all three: mongodb, redis and localstack will be running on one command @Aman Jain let me know if that solved your problem
Aman Jain
Aman JainOPβ€’14mo ago
@ninja7 installing redis
ninja7
ninja7β€’14mo ago
I don' think thats necessary
Aman Jain
Aman JainOPβ€’14mo ago
that error is occuring while running
No description
ninja7
ninja7β€’14mo ago
That's probably due to no connection with Redis Here is what you do: Open docker desktop then open terminal on Novu root folder, go to docker->local->development and run
docker-compose up
docker-compose up
Aman Jain
Aman JainOPβ€’14mo ago
Thank you, @ninja7! After installing Docker and Docker Compose and waiting for approximately one hour, it finally started working.
ninja7
ninja7β€’14mo ago
so glad to hear it πŸ™‚
Akhil
Akhilβ€’14mo ago
Hey @Aman Jain @ninja7 i am facing same issue. I have some question i have used docker compose up what should i do after that to run web on local system How can i setup locally. I have used npm start and then running web app and other but it was too heavy for my system that my sytem keep getting crash
Aman Jain
Aman JainOPβ€’14mo ago
@Akhil in my case i write sudo docker-compose up and then after downloading all the images it start on localhost:4200
Akhil
Akhilβ€’14mo ago
web app is that all you need. do i have to use npm run start:web ?
Aman Jain
Aman JainOPβ€’14mo ago
If you use Docker, it will automatically start, but it might take some time. In my case, it took about 45 minutes. @Akhil it depend on your internet speed
Akhil
Akhilβ€’14mo ago
So just these command will do the work. And i don't need to use npm run start:web or things like that
Novu_Bot
Novu_Botβ€’14mo ago
@Akhil, you just advanced to level 2!
Aman Jain
Aman JainOPβ€’14mo ago
what are you using window , linux , mac ?
Novu_Bot
Novu_Botβ€’14mo ago
@Aman Jain, you just advanced to level 2!
Aman Jain
Aman JainOPβ€’14mo ago
for further detail you can use readme file of docker folder @Akhil
Akhil
Akhilβ€’14mo ago
i am using linux @Aman Jain
Aman Jain
Aman JainOPβ€’14mo ago
ok then sudo docker-compose up will work fine @Akhil
Aryanofficialjain
Aryanofficialjainβ€’14mo ago
and i am using ubuntu
NITISH
NITISHβ€’14mo ago
hey @Aman Jain were a able to login? actually i am facing the same issue
ninja7
ninja7β€’14mo ago
what have you done so far
NITISH
NITISHβ€’14mo ago
i am currently able to open the web app at the login/signup page
ninja7
ninja7β€’14mo ago
okay, docker is running?
Novu_Bot
Novu_Botβ€’14mo ago
@ninja7, you just advanced to level 6!
ninja7
ninja7β€’14mo ago
did you run 'docker-compose up'?
NITISH
NITISHβ€’14mo ago
no
ninja7
ninja7β€’14mo ago
No description
ninja7
ninja7β€’14mo ago
follow this
NITISH
NITISHβ€’14mo ago
πŸ‘
Akhil
Akhilβ€’14mo ago
@ninja7 done all those things but still shows network error. use npm run start:web use docker compose up in docker/local/development directory @ninja7 @Aman Jain Hey i think it is working but i am not able to use my email and password to sign in it is saying me wrong pass or email. But have you done to do that
NITISH
NITISHβ€’14mo ago
What should i do after this
Novu_Bot
Novu_Botβ€’14mo ago
@NITISH, you just advanced to level 1!
ninja7
ninja7β€’14mo ago
it says wrong email password or network error? go to project root folder and run
npm run setup:project
npm run setup:project
Akhil
Akhilβ€’14mo ago
wrong email and password i have resolved the network error part.
NITISH
NITISHβ€’14mo ago
Steps i took to start the website:- Earlier 1. Start redis 2. Start mongodb compass 3 npm run start:web Now 1. docker-compose up 2. npm run start:web
ninja7
ninja7β€’14mo ago
have you not build the projecct?
Akhil
Akhilβ€’14mo ago
Do you have any idea about this
ninja7
ninja7β€’14mo ago
try signing up once, it should be ok signing up through local host, not novu website alright?
Akhil
Akhilβ€’14mo ago
ya signing in through localhost
ninja7
ninja7β€’14mo ago
try to sign up once
Akhil
Akhilβ€’14mo ago
using the same email and password used in novu website
NITISH
NITISHβ€’14mo ago
When i run this cmd it shows some errors like some file is not available or something
Akhil
Akhilβ€’14mo ago
okay i will give it a try
ninja7
ninja7β€’14mo ago
interesting you need to fix those errors first may i see the error?
NITISH
NITISHβ€’14mo ago
πŸ˜…ok
NITISH
NITISHβ€’14mo ago
i think the project is built successfully this time πŸ‘€
No description
ninja7
ninja7β€’14mo ago
perfect
NITISH
NITISHβ€’14mo ago
i am getting the network error when i put the things in the signup form and click signup on localhost
ninja7
ninja7β€’14mo ago
did you run npm run start:api and npm run start:worker or not?
NITISH
NITISHβ€’14mo ago
no actually everything ran just good so it thought....
ninja7
ninja7β€’14mo ago
np, you need to run API service to connect to mongo and redis
NITISH
NITISHβ€’14mo ago
ok
ninja7
ninja7β€’14mo ago
FYI, all these should be running in parallel, npm run start:web, npm run start:api and npm run start:worker
NITISH
NITISHβ€’14mo ago
ok
Novu_Bot
Novu_Botβ€’14mo ago
@NITISH, you just advanced to level 2!
NITISH
NITISHβ€’14mo ago
No description
NITISH
NITISHβ€’14mo ago
and getting these two when i run start:api and start:worker cmds are these started or already started
No description
No description
NITISH
NITISHβ€’14mo ago
@ninja7
ninja7
ninja7β€’14mo ago
yeah whats the progress?
NITISH
NITISHβ€’14mo ago
Im still getting network error See
ninja7
ninja7β€’14mo ago
I dont understand whats going on If there is no error in the terminal, it should have run successfully
NITISH
NITISHβ€’14mo ago
Can you tell evry step you took to set it up locally please
ninja7
ninja7β€’14mo ago
alright, delete node_modules and start all over again
NITISH
NITISHβ€’14mo ago
ok
ninja7
ninja7β€’14mo ago
start with
npm run setup:project
npm run setup:project
NITISH
NITISHβ€’14mo ago
1. i recloned the repo(git clone -url-) 2. i ran npm run setup:project in novu i thing i want to tell you is i got alot of warns while the project setup (like warn depricated and nodejs version diff like it wanted version between 13 and 17 but i have 18.... installed in my system) 1 thing*
NITISH
NITISHβ€’14mo ago
@ninja7
No description
ninja7
ninja7β€’14mo ago
@NITISH whats your node version? 'node --version'
NITISH
NITISHβ€’14mo ago
18.12.1
ninja7
ninja7β€’14mo ago
that can be an issue, to see the node version necessary for the project, you should always check the .nvmrc file
NITISH
NITISHβ€’14mo ago
Check the fist line here
ninja7
ninja7β€’14mo ago
check for .nvmrc file in the root folder, there you will see the node version
NITISH
NITISHβ€’14mo ago
Ok
Novu_Bot
Novu_Botβ€’14mo ago
@NITISH, you just advanced to level 3!
ninja7
ninja7β€’14mo ago
did you check it? its actually 16.15.1
ninja7
ninja7β€’14mo ago
No description
ninja7
ninja7β€’14mo ago
to install node v16.15.1, you can run on terminal,
nvm install 16.15.1
nvm install 16.15.1
NITISH
NITISHβ€’14mo ago
It showing the same version
ninja7
ninja7β€’14mo ago
16.15.1?
NITISH
NITISHβ€’14mo ago
Yes
ninja7
ninja7β€’14mo ago
how would you get the top warning if that was the case?πŸ€”
NITISH
NITISHβ€’14mo ago
πŸ™„
ninja7
ninja7β€’14mo ago
anyway, after building the project, did you follow nextt steps?
NITISH
NITISHβ€’14mo ago
no i was waiting for your msg so i should open the docker destop the run the docker-compose up cmd in that folder and run the npm cmds right
ninja7
ninja7β€’14mo ago
oh, please run docker first you run docker-compose up in docker/local/development/ folder
NITISH
NITISHβ€’14mo ago
ys
ninja7
ninja7β€’14mo ago
yeah when you do that, let me know
NITISH
NITISHβ€’14mo ago
ok
Suryansh
Suryanshβ€’14mo ago
I signed up using email and password But it is showing network error
parveshhh11
parveshhh11β€’14mo ago
yea same for me
Suryansh
Suryanshβ€’14mo ago
How to fix this issue?
Novu_Bot
Novu_Botβ€’14mo ago
@Suryansh, you just advanced to level 3!
Pawan Jain
Pawan Jainβ€’14mo ago
@Aman Jain @Akhil @Gamerbeasts @NITISH @Suryansh @parveshhh11 I see you are struggling to get it working in local machine? Can you all please share with me steps you took in this format? 1. OS Name 2. npm version 3. node version 4. steps you took till now 5. exact issue you are facing Please reply to this message. I will try my best to help each one of you πŸ™πŸ»
Akhil
Akhilβ€’14mo ago
you pinged the wrong Akhil πŸ˜„ cc: @Akhil
Akhil
Akhilβ€’14mo ago
I think you meant to ping me CC: @Akhil
Novu_Bot
Novu_Botβ€’14mo ago
@Akhil, you just advanced to level 3!
Pawan Jain
Pawan Jainβ€’14mo ago
No worries @Akhil Please share the issue you are facing in above format
Akhil
Akhilβ€’14mo ago
@Pawan Jain. Hey the issue has been resolved now. πŸ™
Suryansh
Suryanshβ€’14mo ago
Can you help @Akhil ?
Pawan Jain
Pawan Jainβ€’14mo ago
@Suryansh Please share the issue and step in this format
Suryansh
Suryanshβ€’14mo ago
OS - Windows 11 npm - 9.8.1 node - 18.13.0 All dependencies installed, the login page is appearing on running project but signup fails.
Pawan Jain
Pawan Jainβ€’14mo ago
@Suryansh Did you install redis, mongodb in local machine or running these in local machine?
Suryansh
Suryanshβ€’14mo ago
I am using docker to run all these at a time {"message":"Cannot GET /","error":"Not Found","statusCode":404} Response from running api at localhost 3000 localhost 4200 - webite isn't loading localhost 3000/3004 not showing any response localhost 3002 gives output of Hello World! @Pawan Jain this is the output for command npm run start For npm run start:web, the login screen appears but it shows network error after signing up
parveshhh11
parveshhh11β€’14mo ago
OS: Windows11 npm: 9.2.0 node: 16.15.1 steps: pnpm setup:project cd docker/local/development docker-compose up Ran these commands in separate terminals. npm run start:web npm run start:worker npm run start:api I'm able to run port 4200, but while loggin in it says "network error" While all other ports are not responding Hey everyone! Quick update from my side. Everything's working fine now. Previously I was getting the "Network Error" because I had some error in my current code and not due to installation problem of redis/mongo. Due to this error, npm run start:web & npm run start:api were not ran successfully. Hence you all can check your terminals if there's any sort of error occurs that is blocking the execution.
NITISH
NITISHβ€’14mo ago
os name : window 11 home(22H2) npm version : 8.19.2 node version : 18.12.1 steps : 1. cloned repo (git clone url). 2. npm run setup:project 3. docker-compose up (in novu/docker/local/development) 4. npm run start:api 5. npm run start:worker 5. npmΒ runΒ start:web exact issue : when i try to singup (on localhost) it shows network error. Basically i am not able to move to other sections of the web app. I think may be it because of the incomplete .envΒ file. @Pawan Jain
Suryansh
Suryanshβ€’14mo ago
So you downgraded your node version? My current node version is 18.13.0 I will have to downgrade its version to 16 to prevent the network error?
parveshhh11
parveshhh11β€’14mo ago
yes. you can use nvm to do so
Novu_Bot
Novu_Botβ€’14mo ago
@parveshhh11, you just advanced to level 2!
Pawan Jain
Pawan Jainβ€’14mo ago
in 3rd step please try this make sure you are in docker/local/development folder and run this command to run mongodb, redis and localstack in docker
docker compose -f docker-compose.yml up
docker compose -f docker-compose.yml up
As suggested by @parveshhh11 You can use nvm to install and use 16.15.1 node version
Suryansh
Suryanshβ€’14mo ago
Uninstall the nodejs and use nvm for pnpm also do i have to use any specific version?
NITISH
NITISHβ€’14mo ago
hey @Pawan Jain @parveshhh11 i am still getting the network error when i try to login or signup at the auth page (localhost) . localstack, api , workers is running i have changed the node version to 16.15.1 but still i am getting this
Pawan Jain
Pawan Jainβ€’14mo ago
@NITISH Did you run mongodb and redis using this command docker compose -f docker-compose.yml up
NITISH
NITISHβ€’14mo ago
Yes i did
parveshhh11
parveshhh11β€’14mo ago
I'm using 7.33.4 pnpm version
Pawan Jain
Pawan Jainβ€’14mo ago
do you see any error in docker logs for mongodb or redis? Could you please share screenshot of error in network tab?
NITISH
NITISHβ€’14mo ago
No description
NITISH
NITISHβ€’14mo ago
start:web πŸ‘‡ (docker-compose ☝️)
No description
NITISH
NITISHβ€’14mo ago
start:api πŸ‘‡
No description
NITISH
NITISHβ€’14mo ago
start:worker πŸ‘‡
No description
Suryansh
Suryanshβ€’14mo ago
Still there's error even if setup is done correctly
No description
Suryansh
Suryanshβ€’14mo ago
@Support
Novu_Bot
Novu_Botβ€’14mo ago
@Suryansh, you just advanced to level 4!
Suryansh
Suryanshβ€’14mo ago
@Pawan Jain
Pawan Jain
Pawan Jainβ€’14mo ago
@Suryansh please check carefully if everything is running and there is no any error are you able to access mongodb using atlas?
Suryansh
Suryanshβ€’14mo ago
no error in running docker compose no error in running npm run start:web I am using mongodb through docker @Pawan Jain the versions that i am using align with the project requirements
NITISH
NITISHβ€’14mo ago
@Pawan Jain I am getting cors error when try to login
No description
Want results from more Discord servers?
Add your server