Can't connect to Xbox server

I recently purchased gears 5 for Windows 10 and can not play. I can play other Xbox games and connect and play with friends just fine. For example, the new COD MW beta. But Everytime I go to play gears it says it fails to connect to Xbox servers. How can I fix this?