Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I got ValueError: Unexpected member type encountered: blob when executing the model inference in csv format #250

Open
yuhsintsao opened this issue Feb 25, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@yuhsintsao
Copy link

Image

Run the notebook named example_notebooks/get_started.ipynb and I got the issue for the data type. Is this caused by the library version?

@yuhsintsao yuhsintsao added the bug Something isn't working label Feb 25, 2025
@davemohramz
Copy link

I encountered the same issue today. This alternative code worked for me.

runtime_client = boto3.client('sagemaker-runtime')

sample = test_data.sample(1)
sample_payload = sample.to_csv(header=False, index=False).strip()

response = runtime_client.invoke_endpoint(
    EndpointName=endpoint_name,
    ContentType='text/csv',
    Body=sample_payload
)

result = response['Body'].read().decode('utf-8')
print(result)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants