Incorrect format used for Image, error when trying to invoke sagemaker endpoint.

#26
by kulathilake - opened

I've deployed a serverless inference endpoint on sagemaker as follows.
image.png

I'm trying to invoke the same point as follows.
image.png

But I keep getting the following error.

botocore.errorfactory.ModelError: An error occurred (ModelError) when calling the InvokeEndpoint operation: Received client error (400) from model with message "{ "code": 400, "type": "InternalServerException", "message": "Incorrect format used for image. Should be an url linking to an image, a local path, or a PIL image." }

Is the input format in the Body correct? if not what could be causing this. the image url i'm using works fine and resolves to an image.

I am also struggling with that. Any idea?

Sign up or log in to comment