Textract run fails

0

Trying to run textract example (https://docs.aws.amazon.com/textract/latest/dg/example_textract_DetectDocumentText_section.html) on my local environment but getting error.

Caused by: java.lang.NoSuchMethodError: 'java.util.Optional software.amazon.awssdk.http.SdkHttpResponse.firstMatchingHeader(java.util.Collection)' 
at software.amazon.awssdk.protocols.json.internal.unmarshall.AwsJsonResponseHandler.generateResponseMetadata(AwsJsonResponseHandler.java:60) ~[aws-json-protocol-2.17.252.jar:?]
	at software.amazon.awssdk.protocols.json.internal.unmarshall.AwsJsonResponseHandler.handle(AwsJsonResponseHandler.java:47) ~[aws-json-protocol-2.17.252.jar:?]
	at software.amazon.awssdk.core.http.MetricCollectingHttpResponseHandler.lambda$handle$0(MetricCollectingHttpResponseHandler.java:52) ~[sdk-core-2.17.169.jar:?]

Do I miss some client configuration so that DefaultSdkHttpFullReponse is used instead of other implementation that consists correct method with Collection argument?

Jaanus
asked 2 years ago116 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions