Error when using archive distribution

I am using the archive build manager in Xcode to distribute the app. However, when I select distribute, it gets hung up "Selecting account..." on and throws the error:

The operation couldn’t be completed. (IDEFoundation.DistributionCredentialedProviderLocatorError error 1.) and also Credentialed provider request failed with error: "The request timed out"

I have restarted Xcode and also removed and re-added my account. Anyone have any ideas on what may be causing this?

EDIT: Issue was found to be a network issue. Turned on a VPN and problem solved.

Error when using archive distribution
 
 
Q