数据操作返回 500 错误

注意: 本文适用于与 Google Cloud Functions 配合使用时的 Google 数据操作集成。

数据操作返回 500 错误。 

  • 对 Google Cloud 函数的调用返回了非 JSON 响应。
    • Genesys Cloud 数据操作仅支持 JSON 响应。 更改谷歌云端函数以返回 JSON。
{
  "message": "The server encountered an unexpected condition which prevented it from fulfilling the request.",
  "code": "internal.server.error",
  "status": 500,
  "messageParams": {},
  "contextId": "af57b4fb-6642-4a30-87e8-ba1ad8291eb1",
  "details": [
    {
      "errorCode": "ACTION.PROCESSING"
    }
  ],
  "errors": [
    {
      "message": "REST call for action execute failed. Message:Result from google function could not be translated to JSON: error:Unrecognized token 'I': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')\n at [Source: (String)\"I am not JSON!\"; line: 1, column: 2] [executionId=\"hwa45fo7da8p\"] [af57b4fb-6642-4a30-87e8-ba1ad8291eb1]",
      "code": "INTERNAL_SERVER_ERROR",
      "status": 500,
      "messageParams": {},
      "details": [],
      "errors": []
    }
  ]
}

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