mooedang1 / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

Cannot call ajax with another port number #138

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. I check URL in browser, so it definitely does work: 
http://192.168.42.180:8080/xbmcCmds/xbmcHttp?command=getcurrentlyplaying

2. I call it using this code:
new 
AQuery(context).auth(handle).ajax("http://192.168.42.180:8080/xbmcCmds/xbmcHttp?
command=getcurrentlyplaying", String.class,
new AjaxCallback<String>() {
   @Override
   public void callback(String url, String html, AjaxStatus status) {
      super.callback(url, html, status);
      Log.d("JHG_Debug", "Html: " + html);
   }
});

3. I execute the code ;-)

What is the expected output? What do you see instead?

I should see the currently playing track in my log (<html><li>Filename:[Nothing 
Playing]</html>)

Instead, the AQuery debug says:
get:http://192.168.42.180:8080/xbmcCmds/xbmcHttp?command=getcurrentlyplaying
creating http client
org.apache.http.conn.ConnectTimeoutException: Connect to /89.187.140.254:8080 
timed out (...)

What version of the product are you using?

android-query.0.25.9.jar

Please provide any additional information below.

It works as long as I use port 80 instead of required 8080. It happens on both 
local and remote IPs.

Original issue reported on code.google.com by jan.gru...@gmail.com on 13 May 2013 at 4:32

GoogleCodeExporter commented 8 years ago
Please, cancel this issue. It was badly configured server. I'm really sorry.

Original comment by jan.gru...@gmail.com on 15 May 2013 at 11:53

GoogleCodeExporter commented 8 years ago

Original comment by tinyeeliu@gmail.com on 15 May 2013 at 3:05