Author Message
RahulJangam
Joined: Jun 8, 2009
Messages: 9
Offline
Hi

I am trying to make an HTTP request from ccxml but it gives error as error.send.failed.

here is the code snippet:

<var name="sample" expr="'hello123'"/>
<send target="'http://148.147.228.202:8000/HelloServlet'" targettype="'basichttp'" name="'http.get'" namelist="sample" delay="'0s'"/>


Here is the error from log:

error.send.failed
delay: "0"
event.sample: "hello123"
name: "http.get"
okto.tagname: "command.send"
sendid: "1174405332"
sessionid: "vp-2009182073558-20"
target: "http://148.147.228.202:8000/HelloServlet"
targettype: "basichttp"


Any help on this would be really great!.
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
Your code seems fine. Are you sure the url "http://148.147.228.202:8000/HelloServlet" works? You can test the url from the internet browser or using wget on the same machine as the mpp to make sure.
RahulJangam
Joined: Jun 8, 2009
Messages: 9
Offline
Yes I have tested the URL from browser. But it does not work from the ccxml. Not sure why?
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
Is the app server behind a firewall?
RahulJangam
Joined: Jun 8, 2009
Messages: 9
Offline
No... application is inside firewall.
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
Do you see any request coming in on the app server side? You can try to figure that out by looking at http logs on the app server or putting some bug statement on the servlet doGet method.
RahulJangam
Joined: Jun 8, 2009
Messages: 9
Offline
Yes I have those statements to lookup if i received anything on the servlet. But it does not get anything. But in between I managed to do the same using fetch. and it worked fine.
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
Hmmm, I just double-checked with our VP CCXML developer. He said what you did should work, and he tried it not long ago. If you want to persue it more, send us a simple app that you can reproduce the problem with and we can take it from there.
Go to:   
Mobile view