infernozoj / android-query

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

Network error 101 #178

Open GoogleCodeExporter opened 8 years ago

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

Trying Aquery ajax with the url 
"https://dev.librivox.org/api/feed/audiobooks?author=green&format=json" always 
gives a network failure -101.

Code snippet:

                String url = "https://dev.librivox.org/api/feed/audiobooks?author=green&format=json";
                final AQuery aq = new AQuery(getApplicationContext());
                aq.ajax(url, JSONArray.class, new AjaxCallback<JSONArray>() {

                    @Override
                    public void callback(String url, JSONArray json,
                            AjaxStatus status) {

                        if (json != null) {

                            // successful ajax call, show status code and json
                            // content
                            Toast.makeText(aq.getContext(),
                                    status.getCode() + ":" + json.toString(),
                                    Toast.LENGTH_LONG).show();

                        } else {

                            // ajax error, show error code
                            Toast.makeText(aq.getContext(),
                                    "Error:" + status.getCode(),
                                    Toast.LENGTH_LONG).show();
                        }
                    }
                });

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

- Expect to see successful JSON response. The URL returns 200 on Browser window 
and the app has verified internet connection. Google url works too but there 
seems to be an issue with this url when used by AQuery.

What version of the product are you using? On what operating system?

 - Android 4.4.2 on Nexus 5

Please provide any additional information below.

Original issue reported on code.google.com by romulus0...@gmail.com on 8 Apr 2014 at 4:25

GoogleCodeExporter commented 8 years ago
Hi, any solution to this issue?

Original comment by bhanupri...@in.bosch.com on 12 Nov 2014 at 9:29