Custom domains “An unknown error has occurred.”

Custom domains don’t work. When i try to add a new custom domain it says “An unknown error has occurred.”

Which domain are you attempting to add? Does the domain get added to the project despite the error?