For me the problem was that I had added Country to the list of Application Permissions in the Epic Account Services part of the Dev Portal.
Country
This permission is apparently not requested by the Online Subsystem, which resuts in this error.