Cloudkibo / CloudKibo

CloudKibo
0 stars 0 forks source link

Server Crash in todays meeting #482

Closed sumairasaeed closed 7 years ago

sumairasaeed commented 7 years ago

In todays meeting, server had crashed and we all lost connection to conference.

sojharo commented 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.

screen shot 2016-12-17 at 2 04 58 pm
jekram commented 7 years ago

Hum.... But nobody was on mobile that I know off @zarmeen92 @sumairasaeed

sojharo commented 7 years ago

During discussion @sumairasaeed informed me today that she was running application at that time. Also we both validated it together today.

sojharo commented 7 years ago

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.

jekram commented 7 years ago

Thanks