There may be some issue with the connectivity or else the discord server may be down. This error generally used to occur on older versions. After a few updates, they have fixed this problem.