opensearch-project / skills

Apache License 2.0
6 stars 29 forks source link

Deal endpoint failure problem #326

Closed xinyual closed 3 months ago

xinyual commented 3 months ago

Description

When sagemaker endpoint inference fails, it will return {"code":424,"message":"Batch inference failed","properties":{},"content":{"keys":[],"values":[]},"cancelled":false} Which will inside model tensor dataAsMap. So we need to catch this NPE.

Issues Resolved

[List any issues this PR will resolve]

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.