Data action returns a 500 error
A data action returns a 500 error.
- A call to a Google Cloud Function returned a non-JSON response.
- Genesys Cloud data actions only support JSON responses. Change the Google Cloud Function to return 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": []
}
]
}
For more information, see About the Google data actions integration.