add solution when get an exception with call method getChat()