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
demandé il y a 2 ans117 vues
Aucune réponse

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions