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
preguntada hace 2 años117 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas