Hi Guys!
I am having a somewhat confusing problem.
sending a request to my API.
Checking with the API, the data comes back to PureCloud, however it fails in PureCloud with the following message:
This is under the 8th step "Execute" of testing.
{
"status": 500,
"code": "internal.server.error",
"message": "The server encountered an unexpected condition which prevented it from fulfilling the request.",
"messageParams": {},
"contextId": "8f077452-661c-4e5e-a4e6-2dacbfcbd813",
"details": [
{
"errorCode": "ACTION.PROCESSING"
}
],
"errors": []
}
Configuration:
{
"requestUrlTemplate": "https:///api/Payment/GetCustomer",
"requestType": "POST",
"headers": {
"Content-Type": "application/json",
"Authorization": "Basic YTpi"
},
"requestTemplate": "{\n "customerId": "{input.CustomerId}\",\n \"zip\": \"{input.CustomerZip}" \n}"
}
The data:
"{\n "customerId": "1901150001",\n "zip": "77380" \n}"
The response ( caught with ngrok):
HTTP/1.1 200 OK
Date: Wed, 04 Sep 2019 15:42:10 GMT
Content-Type: application/json; charset=utf-8
Server: Kestrel
Transfer-Encoding: chunked
af
{"customerFirstName":"", "customerLastName":"", "dueAmount":"", "dueAmountUnposted":"", "dueNow":"", "pastDue":"", "unPostedAmounts":""}
af = 175
Regardless what the response configuration is, it fails with the above error message.
This is only one of the many response configurations that I have tried.
{
"translationMap": {},
"translationMapDefaults": {},
"successTemplate": "${rawResult}"
}