not able to login on localhost showing error "network error"
how to check mongo is running or not ?
130 Replies
@Aman Jain, you just advanced to level 1!
@Pawan Jain are you there
is docker running?
@Aman Jain
no i am using local setup
@ninja7
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
@ninja7 installing redis
I don' think thats necessary
that error is occuring while running
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
Thank you, @ninja7! After installing Docker and Docker Compose and waiting for approximately one hour, it finally started working.
so glad to hear it π
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@Akhil in my case i write
sudo docker-compose up
and then after downloading all the images it start on localhost:4200web app is that all you need. do i have to use npm run start:web
?
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
So just these command will do the work. And i don't need to use
npm run start:web
or things like that@Akhil, you just advanced to level 2!
what are you using window , linux , mac ?
@Aman Jain, you just advanced to level 2!
for further detail you can use readme file of docker folder
@Akhil
i am using linux
@Aman Jain
ok then
sudo docker-compose up
will work fine @Akhiland i am using ubuntu
hey @Aman Jain were a able to login? actually i am facing the same issue
what have you done so far
i am currently able to open the web app at the login/signup page
okay, docker is running?
@ninja7, you just advanced to level 6!
did you run 'docker-compose up'?
no
follow this
π
@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
What should i do after this
@NITISH, you just advanced to level 1!
it says wrong email password or network error?
go to project root folder and run
wrong email and password i have resolved the network error part.
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
have you not build the projecct?
Do you have any idea about this
try signing up once, it should be ok
signing up through local host, not novu website alright?
ya signing in through localhost
try to sign up once
using the same email and password used in novu website
When i run this cmd it shows some errors like some file is not available or something
okay i will give it a try
interesting
you need to fix those errors first
may i see the error?
π
ok
i think the project is built successfully this time π
perfect
i am getting the network error when i put the things in the signup form and click signup
on localhost
did you run npm run start:api and npm run start:worker or not?
no actually everything ran just good so it thought....
np, you need to run API service to connect to mongo and redis
ok
FYI, all these should be running in parallel, npm run start:web, npm run start:api and npm run start:worker
ok
@NITISH, you just advanced to level 2!
and getting these two when i run start:api and start:worker cmds are these started or already started
@ninja7
yeah whats the progress?
Im still getting network error
See
I dont understand whats going on
If there is no error in the terminal, it should have run successfully
Can you tell evry step you took to set it up locally please
alright, delete node_modules and start all over again
ok
start with
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*
@ninja7
@NITISH whats your node version? 'node --version'
18.12.1
that can be an issue, to see the node version necessary for the project, you should always check the .nvmrc file
Check the fist line here
check for .nvmrc file in the root folder, there you will see the node version
Ok
@NITISH, you just advanced to level 3!
did you check it? its actually 16.15.1
to install node v16.15.1, you can run on terminal,
It showing the same version
16.15.1?
Yes
how would you get the top warning if that was the case?π€
π
anyway, after building the project, did you follow nextt steps?
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
oh, please run docker first
you run docker-compose up in docker/local/development/ folder
ys
yeah when you do that, let me know
ok
I signed up using email and password
But it is showing network error
yea same for me
How to fix this issue?
@Suryansh, you just advanced to level 3!
@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 ππ»
you pinged the wrong Akhil π
cc: @Akhil
I think you meant to ping me
CC: @Akhil
@Akhil, you just advanced to level 3!
No worries @Akhil
Please share the issue you are facing in above format
@Pawan Jain. Hey the issue has been resolved now. π
Can you help @Akhil ?
@Suryansh
Please share the issue and step in this format
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.
@Suryansh Did you install redis, mongodb in local machine or running these in local machine?
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
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.
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
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?
yes. you can use nvm to do so
@parveshhh11, you just advanced to level 2!
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
As suggested by @parveshhh11
You can use nvm to install and use 16.15.1 node version
Uninstall the nodejs and use nvm
for pnpm also do i have to use any specific version?
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
@NITISH Did you run mongodb and redis using this command
docker compose -f docker-compose.yml up
Yes i did
I'm using 7.33.4 pnpm version
do you see any error in docker logs for mongodb or redis?
Could you please share screenshot of error in network tab?
start:web π (docker-compose βοΈ)
start:api π
start:worker π
Still there's error even if setup is done correctly
@Support
@Suryansh, you just advanced to level 4!
@Pawan Jain
@Suryansh please check carefully if everything is running and there is no any error
are you able to access mongodb using atlas?
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
@Pawan Jain I am getting cors error when try to login