Skip to content

Encountering connection error while fetching IdentityStore after migrating from v1 to v2 #3747

Discussion options

You must be logged in to vote

The ProxyConfiguration needs to be set in the HTTP Client used in the IdentityStoreClient too.

IdentitystoreClient awsSSOClient =  IdentitystoreClient.builder()
            .credentialsProvider(StaticCredentialsProvider.create(awsCredentials)) 
            .httpClient(getProxyConfig())    // <--- this is missing
            .build();

Note that one best practice when configuring HTTP clients in service clients is to use the httpClientBuilder() method, this way the service client will manage the HTTP client lifecycle and close it when the service client gets closed.

More info - https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/http-configuration-apache.html

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@c1ginly
Comment options

@debora-ito
Comment options

@chgogu
Comment options

@debora-ito
Comment options

@chgogu
Comment options

Answer selected by c1ginly
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants