Encountering connection error while fetching IdentityStore after migrating from v1 to v2 #3747
-
The Bug
The exception encountered
We used the same credentials for both v1 and v2 connections. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
The ProxyConfiguration needs to be set in the HTTP Client used in the IdentityStoreClient too.
Note that one best practice when configuring HTTP clients in service clients is to use the More info - https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/http-configuration-apache.html |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
The ProxyConfiguration needs to be set in the HTTP Client used in the IdentityStoreClient too.
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