get msg by session id. error for no session