Not sure why it was giving an error. But to resolve the issue
click on “Software Sources”
On the Network line put http://mirror.centos.org/centos-8/8/BaseOS/x86_64/os/
Should be able to go back to the previous page and select what you want to install.