Hi,
I have a custom classifierDocument endpoint that has been configured in AWS Comprehend and is ready for real time analysis and works well. I am now trying to hit that endpoint with Postman, but i keep getting an error. Is my url incorrect or one of my headers? The error and postman configs are as follows:
Postman Config:
Post: https://comprehend.us-east-1.amazonaws.com/
Authorization:
AWS Signature
AccessKey: <AK>
SecretKey: <SK>
AWS Region: us-east-1
Service Name: comprehend:ClassifyDocument
Headers:
Auth: <stuff>
X-AMZ-Content-SHA256: <stuff>
X-AMZ-Date: <stuff>
Content-Type: application/json
Host: <stuff>
PostmanToken: <stuff>
User Agent: <stuff>
Accept: all
AcceptEncoding: gzip, deflate, br
Connection: keep alive
Body:
raw-text
{
"Text": "Emotional Intelligence (EQ), popularized by best-selling author Daniel Goleman has been validated with multiple research studies to be a key differentiator in work performance. Emotions",
"EndpointArn": "arn:aws:comprehend:us-east-1:[stuff]:document-classifier-endpoint/pravsFirstEnd"
}
Text Response Error:
<AccessDeniedException>
<Message>Unable to determine service/operation name to be authorized</Message>
</AccessDeniedException>
Json Response Error:
{
"Output": {
"__type": "com.amazon.coral.service#UnknownOperationException"
},
"Version": "1.0"
}