Skip to content

Network error 101 #178

@GoogleCodeExporter

Description

@GoogleCodeExporter
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 [email protected] on 8 Apr 2014 at 4:25

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions