Closed sumairasaeed closed 7 years ago
Sumaira has sent me the following screenshot for crash message of server. This happens when we open the mobile application. I am going to look into it.
Hum.... But nobody was on mobile that I know off @zarmeen92 @sumairasaeed
During discussion @sumairasaeed informed me today that she was running application at that time. Also we both validated it together today.
I worked on this error and this was causing because of mobile side. When android received push notificaiton for group chat it fetched the group chat but also called the api to fetch one to one chat.. so with given unique id there was no message in one to one chat, and therefore server crashed. I solved it on Android. but I also solved on server side, I added code to inform the client that there is no such message in mongodb database instead of crashing. I also worked on some other APIs on server where I had doubt that it might crash if mobile client gives wrong informatoin. I will later open a task ahead to do validation of client's request body so that server doesn't crash if client provide wrong information.
Thanks
In todays meeting, server had crashed and we all lost connection to conference.