Hello Community,
Is there any timeout setting for custom data actions?
I am trying to test a data action which is working fine with post man but when I test it within purecloud it shows a notificaiuton,.
Error running action test
with following JSON in output
{ "message": "The request timed out.", "contextId": "1b4389b4-73e4-4859-849f-00a75c3784c9"}
Whereas the web service which I am calling received request and processed successfully. In fact this error in PureCloud is shown exactly the same time request is processed from web service side.
Following are the sections of my data action.
Input Contract
{
"$schema": "SCHEMA URL",
"type": "object",
"required": [
"cardType",
"cardNumber",
"cardExpiry",
"cardSecurityCode",
"token"
],
"properties": {
"cardSecurityCode": {
"type": "string"
},
"cardExpiry": {
"type": "string"
},
"cardType": {
"type": "string"
},
"cardNumber": {
"type": "string"
},
"token": {
"type": "string"
}
}
}
Output Contract
{
"$schema": "SCHEMA URL",
"type": "object",
"required": [
"success",
"message",
"isOTPRequired"
],
"properties": {
"isOTPRequired": {
"type": "string"
},
"success": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
Request
{
"requestUrlTemplate": "ENDPOINT URL",
"requestType": "POST",
"headers": {
"Content-Type": "application/json",
"clientID": "CallCenterIVR",
"Authorization": "${input.token}",
"Transfer-Encoding": "buffered"
},
"requestTemplate": "{\r\n "systemId": "CallCenterIVR",\r\n "entityId": "GF7R68",\r\n "paymentId": "43533790",\r\n "sessionId" : "XXXXXXf",\r\n "paymentMethod" : "CARD", \r\n "currency": "INR",\r\n "amount": "10.0",\r\n "requestType": "TRAVEL",\r\n "cardDetails": {\r\n "cardType": "${input.cardType}",\r\n "cardNumber": "${input.cardNumber}",\r\n "cardExpiry": "${input.cardExpiry}",\r\n "cardSecurityCode": "${input.cardSecurityCode}"\r\n },\r\n "billTo": {\r\n "firstName": "asdwe",\r\n "lastName": "iopipo",\r\n "street": "vcbnvn",\r\n "city": "erte",\r\n "state": null,\r\n "postalCode": null,\r\n "country": "AQ",\r\n "emailId": "test@test.com"\r\n }\r\n}"
}
Response
{
"translationMap": {
"_success": "$.success",
"_message": "$.message",
"_isOTPRequired": "$.isOTPRequired"
},
"successTemplate": "{\r\n "success": "${_success}",\r\n "message": "${_message}",\r\n "isOTPRequired": "${_isOTPRequired}"\r\n}"
}
------------------------------
Cheers,
Sajid Abbas Malek
Al-Futtaim Technologies -
------------------------------