Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network error 101 #178

Open
GoogleCodeExporter opened this issue Apr 1, 2015 · 1 comment
Open

Network error 101 #178

GoogleCodeExporter opened this issue Apr 1, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant