Thank you for posting. Do you have a digital copy of the game or a physical copy? Are you playing on a wired or wireless connection? Also, make sure that you have the correct ports opened: Xbox Network Ports | Xbox One Network Ports | Xbox Live Network Ports - Xbox.com.
take out game turn off the console and unplug it completely and turn it back on and put the game in try again