09-25-2023 05:28 AM
Hello to everyone
UCCX 12.5
I want to send the calling number to external service using REST API and receive information about customer like name and ID.
So when i make REST API i se the exception in UCCX java.lang.String cannot be cast to com.cisco.expression.Modifiable. The step is not going down it just stuck on "Make REST Call"
Solved! Go to Solution.
09-28-2023 04:01 AM
I found the solution. In RestAPI CALL the values like body,response,status and so one should be in string variables. I was using just "" symbols and that was the reason why RESTAPI CALL step was failing.
09-25-2023 06:15 AM
You tested the REST request with something like Postman and it works, right? Next step is either MIVR logs or a packet capture from your UCCX server to try and figure out what the network is seeing.
david
09-25-2023 06:27 AM
Developer from the external service reported that he can see request and they are successful. External service is also sending data back to UCCX but it seems that REST API CALL function is not working correctly as it is not going to " successful" or "unsuccessful" step.
09-25-2023 06:50 AM
Maybe open a TAC case or make sure you're at the latest version. I can tell you with 100% certainly that REST step works fine with 12.5 latest version.
david
09-26-2023 12:51 AM
Hi again. I tested it via Postman and for GET http://10.195.105.154:1001/api/v1/ClientCiscoService/595124213 i have a response:
09-27-2023 10:43 AM
09-28-2023 04:01 AM
I found the solution. In RestAPI CALL the values like body,response,status and so one should be in string variables. I was using just "" symbols and that was the reason why RESTAPI CALL step was failing.
02-06-2024 09:36 PM
In MIVR logs, we can determine whether a request was successful or unsuccessful based on the response provided in the log entries. Successful requests typically include log entries indicating a positive response, such as "request completed successfully" or "response received." On the other hand, unsuccessful requests may include error messages, timeouts, or other indications of failure, such as "request failed" or "response not received." By analyzing the context and content of the log entries, we can identify whether the request was successful or unsuccessful.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide