注意: 本文适用于 AWS Lambda、Genesys Cloud、Google、Microsoft Dynamics 365、Salesforce、Web 服务和 Zendesk 数据操作集成。

当您测试数据操作集成的数据操作时,这些操作可能会因身份验证、证书、处理或远程端点错误而失败。 

验证类型

以下内容适用于所有数据操作集成。

在对远程端点进行身份验证期间,远程第三方服务会发生这些错误。 

示例响应

{
    "errorCode": "INVALID_CREDENTIALS",
    "status": 400,
    "correlationId": "43436e96-5c19-4c52-b951-4ea05d9a9af7",
    "entityName": "msDynamics",
    "userMessage": "There was an issue validating the credentials.",
    "userParams": [],
    "details": [
        {
            "errorCode": "ACTION.AUTHENTICATION"
        }
    ],
    "errors": [
        {
            "errorCode": "INVALID_CREDENTIALS",
            "status": 400,
            "userMessage": "Request to backend service failed.  Response from web service: {\"error\":\"invalid_grant\",\"error_description\":\"AADSTS50126: Invalid username or password\\r\\nTrace ID: 5a830f2e-1978-47f4-a49c-8bfb208f8100\\r\\nCorrelation ID: 0ac36657-3a9a-43b9-9101-fde463adba2a\\r\\nTimestamp: 2019-02-11 14:17:11Z\",\"error_codes\":[50126],\"timestamp\":\"2019-02-11 14:17:11Z\",\"trace_id\":\"5a830f2e-1978-47f4-a49c-8bfb208f8100\",\"correlation_id\":\"0ac36657-3a9a-43b9-9101-fde463adba2a\"} [53df0750-c233-4434-9d36-6377ededb014]",
            "userParams": [],
            "details": [],
            "errors": []
        }
    ]
}

对于 Salesforce 数据操作集成,请确保启用允许 OAuth 用户名-密码流程OAuth 和 OpenID Connect 设置中的设置。有关详细信息,请参阅For more information, see Salesforce 发行说明

证书错误

以下内容仅适用于 Web 服务数据操作集成。

当 Web 服务数据操作拒绝来自远程终端节点的证书时,会发生此错误。

提示: 要检查证书配置是否存在问题,请将像 https://www.ssllabs.com/ssltest 这样的 HTTPS 安全检查器指向您的 Web 服务。

出现这些错误的原因有很多。

  • 您网站的根证书是自签名的或不受公众信任的。 Web 服务数据操作要求由公共信任的证书颁发机构颁发证书。
  • Web 服务器在信任链中不提供中间证书。 Web 服务数据操作要求端点在 TLS 协商期间提供任何中间证书。 要解决此问题,请查看 Web 服务的文档或咨询您的供应商以获取 Web 服务。

示例响应

{
  "message": "The server encountered an unexpected condition which prevented it from fulfilling the request.",
  "code": "internal.server.error",
  "status": 500,
  "messageParams": {},
  "contextId": "5dfe55e3-b172-406d-94f7-5d826afd4c0e",
  "details": [
    {
      "errorCode": "ACTION.REMOTE_ENDPOINT"
    }
  ],
  "errors": [
    {
      "message": "REST call for action execute failed. Message:Unable to send message after 2 attempts, due to: SunCertPathBuilderException: unable to find valid certification path to requested target [5dfe55e3-b172-406d-94f7-5d826afd4c0e]",
      "code": "INTERNAL_SERVER_ERROR",
      "status": 500,
      "messageParams": {},
      "details": [],
      "errors": []
    }
  ]
}

处理错误

以下内容适用于所有数据操作集成。

这些错误发生在数据操作的内部处理过程中,例如执行不存在的数据操作、正文模板不是有效的 JSON 或 JSONPath 错误。

示例响应

{
    "errorCode": "NOT_FOUND",
    "status": 404,
    "correlationId": "a04c66e5-a2ec-46f3-9c7f-d904cd7e46cc",
    "userMessage": "Action with id static_-_Salesforce-GetAccountByPhoneNumber_-_37f5a780-70d7-408c-9cf7-8cd4cc7265fc was not found",
    "userParams": [],
    "details": [
        {
            "errorCode": "ACTION.PROCESSING"
        }
    ]
}

当您在 Accept 标头中创建具有非 JSON 内容类型的数据操作时,也会发生此错误。 例如,如果您在Accept标头 中有 text/html,则会得到以下响应:

示例响应

{
    "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"
        }
    ]
}

远程端点错误

以下内容适用于所有数据操作集成。

这些错误是从远程终端节点返回的。 在以下示例中,操作尝试根据电话号码检索联系人,但该联系人不存在于该操作正在联系的服务中。 

示例响应

{
    "userMessage": "The requested resource was not found.",
    "errorCode": "NOT_FOUND",
    "correlationId": "fb9dda21-979f-4718-b772-8ecc3fbb7dac",
    "details.errorCode": [
        "ACTION.REMOTE_ENDPOINT"
    ],
    "status": 404
}

当没有标头的操作集执行并且远程终端节点返回非 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"
        }
    ]
}

有关更多信息,请参阅 测试集成的数据操作

有关集成的更多信息,请参阅 关于数据操作集成