move client instantiation in ...RepositoryProviders to a position when it is clear they are needed.
fix an issue in GitHubUserProvider/GitLabUserProvider which assigns wrong values to failed_resources and cache in case of client failing to download user information.
This PR proposes to...
...RepositoryProviders
to a position when it is clear they are needed.failed_resources
andcache
in case of client failing to download user information.