software.amazon.awssdk.core.exception.SdkClientException: Unable to marshall request to JSON: Protocol must be 'http' or 'https', but was daxs #3330
Replies: 6 comments 1 reply
-
Hello @raghavEpam , Thank you very much for your message. Best, Yasmine |
Beta Was this translation helpful? Give feedback.
-
@raghavEpam Best, Yasmine |
Beta Was this translation helpful? Give feedback.
-
Hi @yasminetalby , But with the daxClient do we have ClientOverrideConfiguration ? Or any suggestion on how to configure retryPolicy(RetryMode.ADAPTIVE) for dax client Regards, |
Beta Was this translation helpful? Give feedback.
-
Hello @raghavEpam , Thank you very much for your response. To configure the retry mode used to determine the retry policy that is used when handling failure cases, you can use RetryPolicy(RetryMode retryMode). You can explore all other options available to you to override retry policy within the API documentation as well as specific warning/recommendation or descriptions for each method. Please let me know if you have any other question or need further documentation. Sincerely, Yasmine |
Beta Was this translation helpful? Give feedback.
-
Do you have a sample example that I refer to for overriding the the client configuration through the DaxClientBuilder using overrideConfiguration? In the TryDax.java example the ClusterDaxAsyncClient doesn't seem to have the methods to override the client configuration or configure a Retry policy. Thanks, |
Beta Was this translation helpful? Give feedback.
-
@github-actions proposed-answer There is no sample example currently available for this on our documentation base. I can make a requests to the documentation team to provide a sample. However, the API documentation provided above should provide sufficient information to cover your use case. As you can see in the API documentation for the DaxClientBuilder:
Hence, you can build a DaxClient following the same process as in the TryDax documentation:
As you can see on the DaxClientBuilder documentation, it inherits the overrideConfiguration method from the SdkClientBuilder. Following this documentation, you can see that:
Hence, you can provide a ClientOverrideConfiguration and the retry policy using As a side note, you can also configured the SDK retry mode as an environment variable using I hope I was able to clarify how to configure the retry policy and provide sufficient documentation for your use case. I will forward your request for more Dax code sample to the documentation team. Best regards, Yasmine |
Beta Was this translation helpful? Give feedback.
-
Hi @yasminetalby ,
We are using java sdk 2. creating client as follows : -
DynamoDbClient.builder()
.credentialsProvider(credentialsProvider)
.endpointOverride(URI.create(daxEndpoint))
.overrideConfiguration(
ClientOverrideConfiguration.builder()
.retryPolicy(RetryMode.STANDARD)
.build()
)
.region(Region.of(region))
.build();
Any suggestions what can we do for this exception?
It would be great If I can get some solutions.
Beta Was this translation helpful? Give feedback.
All reactions