数据操作返回 400 错误
注意: 本文适用于 Web 服务数据操作集成。
在以下情况下,Web 服务数据操作集成将返回 400 错误:
- 当您使用非 JSON 类型 Accept 标头创建自定义操作时,创建操作将失败。
{ "status": 400, "errorCode": "INVALID_SCHEMA", "userMessage": "The 'Accept' header only supports json content types when specified", "userParams": [], "correlationId": "7930ce0c-ec9e-4929-9a70-0fe087b518b2", "details": [ { "errorCode": "ACTION.PROCESSING" } ], "errors": [] }
配置自定义操作时,请确保将 Accept 标头值设置为 JSON 媒体类型。 例如, 应用程序/json。
- 自定义操作执行会返回非 JSON 响应。
{ "status": 400, "errorCode": "BAD_REQUEST", "userMessage": "The request could not be understood by the server due to malformed syntax.", "userParams": [ ], "correlationId": "fbb8bb72-0637-4028-b7d8-caba6686244b", "details": [ { "errorCode": "ACTION.REMOTE_ENDPOINT" } ], "errors": [ { "status": 400, "errorCode": "BAD_REQUEST", "userMessage": "REST call for action execute failed. Message: Request to backend service failed. To see error details, use test mode to execute the action, or execute request in Postman or other REST tools. [fbb8bb72-0637-4028-b7d8-caba6686244b]", "userParams": [], "details": [], "errors": [] } ] }
有关集成的更多信息,请参阅 关于 Web 服务数据操作集成、 测试数据操作和 将配置添加到自定义操作。