AWS Textract API UnknownOperationException from Postman REST API

0

Hi,

I am trying to use the Textract REST API using POSTMAN but not having any luck getting it working. I am receiving a Bad Request. Initially my Authentication was failing but it seems I have passed that now using Access and Secret key by setting an IAM user with full permission to Textract service.

I checked below steps in related post:

  1. Obtain the access key and secret key for the IAM user. - DONE

  2. Open Postman and create a new POST request. - DONE

  3. In the Authorization tab, select "AWS Signature" from the TYPE dropdown menu. - DONE

  4. In the Access Key field, enter the access key for the IAM user. - DONE

  5. In the Secret Key field, enter the secret key for the IAM user. - DONE

  6. In the AWS Region field, enter the region where you want to make the API call (e.g., "us-west-2"). - DONE (Used Sydney Region)

  7. In the Service Name field, enter "textract". - DONE

  8. In the Request URI field, enter the appropriate endpoint for the DetectDocumentText action. Add a JSON payload to the Body of the request with the necessary attributes and values to call the API. NOT WORKING

I am finding the issue here and am unable to get it working. I receive UnknownOperationException. I have attached the screenshots below for reference. Not sure what I am doing wrong. Any help I can get would be great. Thanks.

Authorization

Parameters

Headers

Body JSON Format

Request and Response

IB
질문됨 10달 전577회 조회
1개 답변
0
수락된 답변

I have resolved the issue. The Header value must be as below:

X-Amz-Target = Textract.DetectDocumentText

IB
답변함 10달 전
profile picture
전문가
검토됨 10달 전
profile picture
전문가
검토됨 10달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인