数据操作返回 500 错误
注意: 本文适用于 Web 服务数据操作集成。
如果连接重置失败,数据操作返回 500 错误。 请求失败,错误与以下内容类似:
{ "message": "The server encountered an unexpected condition which prevented it from fulfilling the request.", "code": "internal.server.error", "status": 500, "messageParams": {}, "contextId": "5565f1f0-48d7-40ea-bfc9-b5ab51fee914", "details": [ { "errorCode": "ACTION.REMOTE_ENDPOINT" } ], "errors": [ { "message": "REST call for action execute failed. Message: Connection reset [5565f1f0-48d7-40ea-bfc9-b5ab51fee914]", "code": "INTERNAL_SERVER_ERROR", "status": 500, "messageParams": {}, "details": [], "errors": [] } ] }
在此错误中,端点表示重用连接,但网络的某些部分在没有通知的情况下关闭了连接。
解决方案
您可以选择保持连接处于打开状态或关闭连接:
- 打开-重新配置端点网络以保持连接处于打开状态。
- Close – Add a
Connection
header to the request configuration withclose
as the value. The data action does not attempt to reuse the connection and hence it can increase the latency to establish a new connection for every data action execution to the remote endpoint.
有关集成的更多信息,请参阅 关于 Web 服务数据操作集成、 测试数据操作和 将配置添加到自定义操作。