amazon-sagemaker-examples icon indicating copy to clipboard operation
amazon-sagemaker-examples copied to clipboard

An error occurred (ValidationError) when calling the InvokeEndpoint

Open alberto33 opened this issue 8 years ago • 6 comments

I continue to get the error:

An error occurred (ValidationError) when calling the InvokeEndpoint operation: Endpoint DEMO-imageclassification-epc--2018-06-23-02-03-51 of account 548009560556 not found.

My command is:

#aws sagemaker-runtime invoke-endpoint --endpoint-name DEMO-imageclassification-epc--2018-06-23-02-03-51 --body fileb://tub.jpg --content-type "application/x-image" output.json

However, in the same session I do see the endpoint:

#aws sagemaker list-endpoints --region us-east-1 { "Endpoints": [ { "EndpointName": "DEMO-imageclassification-ep--2018-06-24-19-59-29", "EndpointArn": "arn:aws:sagemaker:us-east-1:548009560556:endpoint/demo-imageclassification-ep--2018-06-24-19-59-29", "CreationTime": 1529870369.986, "LastModifiedTime": 1529870804.812, "EndpointStatus": "InService" }, { "EndpointName": "DEMO-imageclassification-ep--2018-06-23-02-03-51", "EndpointArn": "arn:aws:sagemaker:us-east-1:548009560556:endpoint/demo-imageclassification-ep--2018-06-23-02-03-51", "CreationTime": 1529719431.741, "LastModifiedTime": 1529719802.981, "EndpointStatus": "InService" } ] }

I did find a few similar threads with folks having the same issue but it seems like the problem disappeared once the endpoint came InService.

alberto33 avatar Jun 24 '18 21:06 alberto33

I have the same problem. Did you figure out alberto33 ?

cna274 avatar Jun 29 '18 21:06 cna274

There appears to be a version of this question on the AWS SageMaker Forums. It looks like the invocation call may be pointing at the endpoint configuration name, rather than the endpoint itself. Thanks.

djarpin avatar Jun 29 '18 21:06 djarpin

We have daily automated pipelines to run inference on SageMaker that ran perfectly fine for over a month failing once a few days ago with this error.

cna274 avatar Jun 29 '18 21:06 cna274

Closing as the original requester's issue appears to have been resolved via the forum.

@cna274 - If you're still experiencing issues, can you provide more detail (endpoint name and invocation call) in a separate issue? Thanks.

djarpin avatar Jul 25 '18 21:07 djarpin

Yes. Thank you!


Thanks,

Alberto

908-307-7148

On Wed, Jul 25, 2018 at 5:41 PM, David Arpin [email protected] wrote:

Closing as the original requester's issue appears to have been resolved via the forum https://forums.aws.amazon.com/thread.jspa?threadID=284713&tstart=0.

@cna274 https://github.com/cna274 - If you're still experiencing issues, can you provide more detail (endpoint name and invocation call) in a separate issue? Thanks.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/awslabs/amazon-sagemaker-examples/issues/293#issuecomment-407905802, or mute the thread https://github.com/notifications/unsubscribe-auth/ALBgANYUcp7aQcTSPGk0oT7PPid_mmMLks5uKOYTgaJpZM4U1UOr .

alberto33 avatar Jul 26 '18 02:07 alberto33

The link to the forum is no longer working 😔

maciej-nowicki-cg24 avatar Jun 23 '23 10:06 maciej-nowicki-cg24