koolkishan / chat-app-react-nodejs

Chat Application Using React, Node.js and Socket.io with MongoDB
https://www.youtube.com/watch?v=otaQKODEUFs
780 stars 557 forks source link

Issue in Register user and in chat section #33

Open Shubhithebeast opened 10 months ago

Shubhithebeast commented 10 months ago

First, i have issue in Register user, when i register a new user, the data is succesfully saved in db, but the loacalStorage showing blank object image after register its opening setavatar page bcz chat-app-user is present in local storage though its {} but giving error while setting avatar saying undefined image

but if i login with same user creds, after removing object from localstorage then localstorage showing data and can set avatar too image and also when ever new user try to setAvatar always give toast error, if try again then its working, but giding error in 1st always, u also face issue in video too

now chat page is open but not able to display only contacts, i watched in utube video , this happens with u too, u didn't show how u tackle it , like if register some users, then i already tried it, but not showing anything in chats

image this last pic, look in console, there some errors too, get api error, , look into it too, i am atthing my repo link here so u can chk my where i have correct -> https://github.com/Shubhithebeast/LetsChat.git thanku, that'll for now... I am really enjoying ur project tutorial....

Shubhithebeast commented 10 months ago

hii contributors help me in my issue... @koolkishan @rajkaranm

Shubhithebeast commented 10 months ago

hey, @koolkishan @rajkaranm help me to solvce this, i stucking here from long time

EduardoAldrimf commented 9 months ago

First, i have issue in Register user, when i register a new user, the data is succesfully saved in db, but the loacalStorage showing blank object

image

after register its opening setavatar page bcz chat-app-user is present in local storage though its {} but giving error while setting avatar saying undefined

image

but if i login with same user creds, after removing object from localstorage then localstorage showing data and can set avatar too

image

and also when ever new user try to setAvatar always give toast error, if try again then its working, but giding error in 1st always, u also face issue in video too

now chat page is open but not able to display only contacts, i watched in utube video , this happens with u too, u didn't show how u tackle it , like if register some users, then i already tried it, but not showing anything in chats

image

this last pic, look in console, there some errors too, get api error, , look into it too, i am atthing my repo link here so u can chk my where i have correct -> https://github.com/Shubhithebeast/LetsChat.git

thanku, that'll for now... I am really enjoying ur project tutorial....

Have you already fixed these issues?