Azure Serverless Endpoint创建API调用失败,请求解析出错求助
问题:Azure ML Serverless Endpoint 创建API请求体反序列化失败
我正尝试按照Azure官方文档创建Serverless Endpoint,先后使用API版本2024-04-01和2024-04-01-preview均未成功。通过Azure控制台可正常创建该资源(已测试多个模型),但API始终返回模糊错误。
尝试过无数种请求体变体,曾收到缺少必填属性或负载格式错误的提示,当前当请求体看似完全符合文档要求时,出现如下错误:
{ "error": { "code": "UserError", "message": "Error when parsing request; unable to deserialize request body", "details": [], "additionalInfo": [ { "type": "ComponentName", "info": { "value": "managementfrontend" } }, { "type": "Correlation", "info": { "value": { "operation": "128dfO*****IDc15c", "request": "3c447*****IDb757" } } }, { "type": "Environment", "info": { "value": "swedencentral" } }, { "type": "Location", "info": { "value": "swedencentral" } }, { "type": "Time", "info": { "value": "2024-06-19T17:04:26.5506093+00:00" } } ] } }
我怀疑请求体存在问题,但基于文档尝试了所有能想到的属性值组合仍未解决。以下是最后尝试的请求体:
{ "properties": { "authMode": "Key", "contentSafety": { "contentSafetyStatus": "Disabled" }, "modelSettings": { "modelId": "azureml://registries/azureml/models/mistralai-Mistral-7B-Instruct-v01/versions/10" } }, "location": "swedencentral", "kind": "ServerlessEndpoint", "identity": { "type": "None" } }
注意:API示例中的identity字段无法使用,系统提示仅支持None值。
已尝试在Node运行时、Postman、Microsoft Learn UI等多个平台发送请求,并测试了多种负载变体,恳请提供相关解决思路!
内容的提问来源于stack exchange,提问作者Andrei Gaspar
相关产品推荐
相关产品推荐

