{"action":"created","issue":{"url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/issues/275","repository_url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking","labels_url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/issues/275/labels{/name}","comments_url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/issues/275/comments","events_url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/issues/275/events","html_url":"https://github.com/amitshekhariitbhu/Fast-Android-Networking/issues/275","id":320560701,"number":275,"title":"Sync Request never suceed","user":{"login":"jsalatiel","id":5522389,"avatar_url":"https://avatars3.githubusercontent.com/u/5522389?v=4","gravatar_id":"","url":"https://api.github.com/users/jsalatiel","html_url":"https://github.com/jsalatiel","followers_url":"https://api.github.com/users/jsalatiel/followers","following_url":"https://api.github.com/users/jsalatiel/following{/other_user}","gists_url":"https://api.github.com/users/jsalatiel/gists{/gist_id}","starred_url":"https://api.github.com/users/jsalatiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsalatiel/subscriptions","organizations_url":"https://api.github.com/users/jsalatiel/orgs","repos_url":"https://api.github.com/users/jsalatiel/repos","events_url":"https://api.github.com/users/jsalatiel/events{/privacy}","received_events_url":"https://api.github.com/users/jsalatiel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-06T03:59:51Z","updated_at":"2018-05-07T22:09:17Z","closed_at":null,"author_association":"NONE","body":"I am trying to make a sync request using the Library.\r\nThis is my code:\r\n```\r\n\r\n        ANRequest request = AndroidNetworking.get(\"https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat={lat}&lon={long}\")\r\n                .addPathParameter(\"lat\", String.valueOf(location.getLatitude()))\r\n                .addPathParameter(\"long\", String.valueOf(location.getLongitude()))\r\n                .build();\r\n\r\n        Log.d(\"TAG\",request.getUrl());\r\n        ANResponse<JSONArray> response = request.executeForJSONArray();\r\n        if (response.isSuccess()) {\r\n            Log.e(\"TAG\",\"OK\");\r\n        } else {\r\n            Log.e(\"TAG\",\"ERROR\");\r\n        }\r\n\r\n```\r\nThe log shows me that the URL is being correctly created,  but i always get response.isSuccess() = False. Am i doing something wrong ? If i run the same in CURL, i get a JSON just fine."},"comment":{"url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/issues/comments/387222190","html_url":"https://github.com/amitshekhariitbhu/Fast-Android-Networking/issues/275#issuecomment-387222190","issue_url":"https://api.github.com/repos/amitshekhariitbhu/Fast-Android-Networking/issues/275","id":387222190,"user":{"login":"jsalatiel","id":5522389,"avatar_url":"https://avatars3.githubusercontent.com/u/5522389?v=4","gravatar_id":"","url":"https://api.github.com/users/jsalatiel","html_url":"https://github.com/jsalatiel","followers_url":"https://api.github.com/users/jsalatiel/followers","following_url":"https://api.github.com/users/jsalatiel/following{/other_user}","gists_url":"https://api.github.com/users/jsalatiel/gists{/gist_id}","starred_url":"https://api.github.com/users/jsalatiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsalatiel/subscriptions","organizations_url":"https://api.github.com/users/jsalatiel/orgs","repos_url":"https://api.github.com/users/jsalatiel/repos","events_url":"https://api.github.com/users/jsalatiel/events{/privacy}","received_events_url":"https://api.github.com/users/jsalatiel/received_events","type":"User","site_admin":false},"created_at":"2018-05-07T22:09:17Z","updated_at":"2018-05-07T22:09:17Z","author_association":"NONE","body":"Ok, now i really think that i am doing something really wrong.\r\n\r\nThe request below always returns OK, even in a URL that does not exist!\r\n\r\n       ANRequest request = AndroidNetworking.get(\"http://www.gstatic.com/gessnerate_204\")\r\n                .setPriority(Priority.HIGH)\r\n                .build();\r\n\r\n        ANResponse response = request.executeForOkHttpResponse();\r\n        if (response.isSuccess()) {\r\n          Log.e(\"TAG\",\"GENERIC JOB OK\");\r\n        } else {\r\n          Log.e(\"TAG\",\"GENERIC JOB ERROR\");\r\n        }\r\n"}}
{"actor":{"display_login":"jsalatiel"}}