【问题标题】:Sagemaker Endpoint returning strange errorSagemaker Endpoint 返回奇怪的错误
【发布时间】:2021-10-08 17:56:09
【问题描述】:

大家好,最近我开始与 sagemaker 合作,我正在测试自动驾驶仪,它获得了相当好的准确性,我想在更多数据上对其进行测试,所以我选择了具有最佳 ACC 的那个并创建了一个端点。现在的问题是我不知道如何正确使用端点。我尝试使用 AWS CLI,但不断收到以下错误:

命令:

aws sagemaker-runtime invoke-endpoint --endpoint-name autopilottest --body 'SW0gaGFwcHk=' f

错误信息:

An error occurred (ModelError) when calling the InvokeEndpoint operation: Received client error (415) from container-1 with message "'application/json' is an unsupported content type.". See https://eu-west-2.console.aws.amazon.com/cloudwatch/home?region=eu-west-2#logEventViewer:group=/aws/sagemaker/Endpoints/autopilottest in account 288240193481 for more information.

命令:

aws sagemaker-runtime invoke-endpoint --endpoint-name autopilottest --body 'Im happy!' f

错误信息:

Invalid base64: "Im happy!"

端点配置:

【问题讨论】:

    标签: amazon-web-services amazon-sagemaker endpoint


    【解决方案1】:

    最后通过添加--content-type text/csv 并使用base64 解决了这个问题,它就像一个魅力。

    【讨论】:

    • 你能在这里添加一个完整的命令吗
    猜你喜欢
    • 2020-04-17
    • 1970-01-01
    • 1970-01-01
    • 2016-12-16
    • 1970-01-01
    • 1970-01-01
    • 2020-03-26
    • 2016-03-14
    • 1970-01-01
    相关资源
    最近更新 更多