I am creating an application using Youtube API. It was working fine but after i change the package name using this method I am getting below exception.
com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAuthIOException
If i change package name back to original with same method the API start to work fine.
I have been changed the applicationId to new package name, restart Android Studio, clean project, rebuiled project but nothing changes.
Stack Track:
11-09 01:49:38.903 10201-10610/com.example.nishant.veuz W/System.err: com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAuthIOException
11-09 01:49:38.903 10201-10610/com.example.nishant.veuz W/System.err: at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential$RequestHandler.intercept(GoogleAccountCredential.java:299)
11-09 01:49:38.903 10201-10610/com.example.nishant.veuz W/System.err: at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:868)
11-09 01:49:38.903 10201-10610/com.example.nishant.veuz W/System.err: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
11-09 01:49:38.903 10201-10610/com.example.nishant.veuz W/System.err: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
11-09 01:49:38.904 10201-10610/com.example.nishant.veuz W/System.err: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
11-09 01:49:38.904 10201-10610/com.example.nishant.veuz W/System.err: at com.example.nishant.veuz.youTubeOperations.YouTubeChannelVideo$2.doInBackground(YouTubeChannelVideo.java:92)
11-09 01:49:38.904 10201-10610/com.example.nishant.veuz W/System.err: at com.example.nishant.veuz.youTubeOperations.YouTubeChannelVideo$2.doInBackground(YouTubeChannelVideo.java:88)
11-09 01:49:38.904 10201-10610/com.example.nishant.veuz W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:295)
11-09 01:49:38.904 10201-10610/com.example.nishant.veuz W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
11-09 01:49:38.904 10201-10610/com.example.nishant.veuz W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
11-09 01:49:38.904 10201-10610/com.example.nishant.veuz W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
11-09 01:49:38.904 10201-10610/com.example.nishant.veuz W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
11-09 01:49:38.904 10201-10610/com.example.nishant.veuz W/System.err: at java.lang.Thread.run(Thread.java:818)
11-09 01:49:38.904 10201-10610/com.example.nishant.veuz W/System.err: Caused by: com.google.android.gms.auth.GoogleAuthException: UNREGISTERED_ON_API_CONSOLE
11-09 01:49:38.904 10201-10610/com.example.nishant.veuz W/System.err: at com.google.android.gms.auth.zze.zzy(Unknown Source)
11-09 01:49:38.904 10201-10610/com.example.nishant.veuz W/System.err: at com.google.android.gms.auth.zzd.zza(Unknown Source)
11-09 01:49:38.904 10201-10610/com.example.nishant.veuz W/System.err: at com.google.android.gms.auth.zzd.zzb(Unknown Source)
11-09 01:49:38.904 10201-10610/com.example.nishant.veuz W/System.err: at com.google.android.gms.auth.zzd.getToken(Unknown Source)
11-09 01:49:38.905 10201-10610/com.example.nishant.veuz W/System.err: at com.google.android.gms.auth.zzd.getToken(Unknown Source)
11-09 01:49:38.905 10201-10610/com.example.nishant.veuz W/System.err: at com.google.android.gms.auth.zzd.getToken(Unknown Source)
11-09 01:49:38.905 10201-10610/com.example.nishant.veuz W/System.err: at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
11-09 01:49:38.905 10201-10610/com.example.nishant.veuz W/System.err: at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential.getToken(GoogleAccountCredential.java:267)
11-09 01:49:38.905 10201-10610/com.example.nishant.veuz W/System.err: at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential$RequestHandler.intercept(GoogleAccountCredential.java:292)
11-09 01:49:38.905 10201-10610/com.example.nishant.veuz W/System.err: ... 12 more
Related
I am getting these error logs when the API is called from any device running Android 5 (API 21). Not sure if it's related to the networking library or any legacy issue with Android version 5 and below.
Log:
Before Android 4.1, method android.graphics.PorterDuffColorFilter
androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
2022-10-19 10:23:48.519 4653-4716/com.app E/Mint: NetSender: Transmitting Exception Unable to resolve host "f78bc3d7.api.splkmobile.com": No address associated with hostname
2022-10-19 10:23:48.519 4653-4716/com.app W/System.err: java.net.UnknownHostException: Unable to resolve host "f78bc3d7.api.splkmobile.com": No address associated with hostname
2022-10-19 10:23:48.519 4653-4716/com.app W/System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:457)
2022-10-19 10:23:48.519 4653-4716/com.app W/System.err: at java.net.InetAddress.getAllByNameImpl(InetAddress.java:252)
2022-10-19 10:23:48.519 4653-4716/com.app W/System.err: at java.net.InetAddress.getAllByName(InetAddress.java:215)
2022-10-19 10:23:48.519 4653-4716/com.app W/System.err: at com.android.okhttp.HostResolver$1.getAllByName(HostResolver.java:29)
2022-10-19 10:23:48.519 4653-4716/com.app W/System.err: at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:232)
2022-10-19 10:23:48.519 4653-4716/com.app W/System.err: at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:124)
2022-10-19 10:23:48.519 4653-4716/com.app W/System.err: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:272)
2022-10-19 10:23:48.519 4653-4716/com.app W/System.err: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)
2022-10-19 10:23:48.519 4653-4716/com.app W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:373)
2022-10-19 10:23:48.519 4653-4716/com.app W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:106)
2022-10-19 10:23:48.519 4653-4716/com.app W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:208)
2022-10-19 10:23:48.520 4653-4716/com.app W/System.err: at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
2022-10-19 10:23:48.520 4653-4716/com.app W/System.err: at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:25)
2022-10-19 10:23:48.520 4653-4716/com.app W/System.err: at com.splunk.mint.NetSender.sendBlocking(NetSender.java:99)
2022-10-19 10:23:48.520 4653-4716/com.app W/System.err: at com.splunk.mint.ActionEvent.send(ActionEvent.java:101)
2022-10-19 10:23:48.520 4653-4716/com.app W/System.err: at com.splunk.mint.Mint$2.run(Mint.java:189)
2022-10-19 10:23:48.520 4653-4716/com.app W/System.err: at java.lang.Thread.run(Thread.java:818)
2022-10-19 10:23:48.520 4653-4716/com.app W/System.err: Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
2022-10-19 10:23:48.520 4653-4716/com.app W/System.err: at libcore.io.Posix.android_getaddrinfo(Native Method)
2022-10-19 10:23:48.520 4653-4716/com.app W/System.err: at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:55)
2022-10-19 10:23:48.520 4653-4716/com.app W/System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:438)
Some more logs:
java.net.UnknownHostException: Unable to resolve host
"f78bc3d7.api.splkmobile.com": No address associated with hostname
2022-10-20 08:50:16.207 4711-4774/com.ap W/System.err: at
java.net.InetAddress.lookupHostByName(InetAddress.java:457)
2022-10-20 08:50:16.207 4711-4774/com.ap W/System.err: at
java.net.InetAddress.getAllByNameImpl(InetAddress.java:252)
2022-10-20 08:50:16.207 4711-4774/com.ap W/System.err: at
java.net.InetAddress.getAllByName(InetAddress.java:215)
2022-10-20 08:50:16.207 4711-4774/com.ap W/System.err: at com.android.okhttp.HostResolver$1.getAllByName(HostResolver.java:29)
2022-10-20 08:50:16.207 4711-4774/com.ap W/System.err: at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:232)
The log suggests that there is something to do with either Graphics or Network call.
There's no f78bc3d7.api.splkmobile.com host. Probably you've made a typo or were given a wrong address.
% ping f78bc3d7.api.splkmobile.com
ping: cannot resolve f78bc3d7.api.splkmobile.com: Unknown host
IOException
01-11 18:28:25.304 W/System.err: org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.1.42 refused
01-11 18:28:25.306 W/System.err: at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:193)
01-11 18:28:25.306 W/System.err: at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:169)
01-11 18:28:25.306 W/System.err: at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124)
01-11 18:28:25.306 W/System.err: at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:370)
01-11 18:28:25.306 W/System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:560)
01-11 18:28:25.306 W/System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:492)
01-11 18:28:25.307 W/System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:470)
01-11 18:28:25.307 W/System.err: at com.aceuat.sms.ACESMSGService.connectServerTeachr(ACESMSGService.java:213)
01-11 18:28:25.307 W/System.err: at com.aceuat.sms.ACESMSGService$1$1.run(ACESMSGService.java:103)
01-11 18:28:25.307 W/System.err: at java.lang.Thread.run(Thread.java:818)
01-11 18:28:25.307 W/System.err: Caused by: java.net.ConnectException: socket failed: EACCES (Permission denied)
01-11 18:28:25.307 W/System.err: at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190)
01-11 18:28:25.307 W/System.err: ... 9 more
01-11 18:28:25.307 W/System.err: Caused by: java.net.SocketException: socket failed: EACCES (Permission denied)
01-11 18:28:25.313 W/System.err: at libcore.io.IoBridge.socket(IoBridge.java:619)
01-11 18:28:25.313 W/System.err: at java.net.PlainSocketImpl.create(PlainSocketImpl.java:198)
01-11 18:28:25.314 W/System.err: at java.net.Socket.checkOpenAndCreate(Socket.java:689)
01-11 18:28:25.314 W/System.err: at java.net.Socket.connect(Socket.java:849)
01-11 18:28:25.314 W/System.err: at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:124)
01-11 18:28:25.314 W/System.err: at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:149)
01-11 18:28:25.314 W/System.err: ... 9 more
01-11 18:28:25.314 W/System.err: Caused by: android.system.ErrnoException: socket failed: EACCES (Permission denied)
01-11 18:28:25.314 W/System.err: at libcore.io.Posix.socket(Native Method)
01-11 18:28:25.314 W/System.err: at libcore.io.BlockGuardOs.socket(BlockGuardOs.java:282)
01-11 18:28:25.314 W/System.err: at libcore.io.IoBridge.socket(IoBridge.java:604)
01-11 18:28:25.314 W/System.err: ... 14 more
01-11 18:28:40.280 I/ACES: Service is still running
Its Working fine in android lower versions.
As the Problem shows: You need to add internet access permission in the app.
<manifest xlmns:android...>
...
<uses-permission android:name="android.permission.INTERNET" />
<application ...
</manifest>
And at last when app asks for internet access in popup allow the app to use internet!
I am trying to connect my android app with server which is running in same PC,ip is 192.168.1.129,and tomcat port is 8081,getting below issue,Can any one help me to resolve this?
10-07 15:51:45.672 29710-5937/com.net.app W/System.err: org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.1.129:8081 refused
10-07 15:51:45.673 29710-5937/com.net.app W/System.err: at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:188)
10-07 15:51:45.673 29710-5937/com.net.app W/System.err: at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:169)
10-07 15:51:45.673 29710-5937/com.net.app W/System.err: at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124)
10-07 15:51:45.673 29710-5937/com.net.app W/System.err: at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:379)
10-07 15:51:45.673 29710-5937/com.net.app W/System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:580)
10-07 15:51:45.673 29710-5937/com.net.app W/System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:503)
10-07 15:51:45.674 29710-5937/com.net.app W/System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:481)
10-07 15:51:45.679 29710-5937/com.net.app W/System.err: at com.chronicwatch.app.utils.WebRequest.post(WebRequest.java:72)
10-07 15:51:45.679 29710-5937/com.net.app W/System.err: at com.chronicwatch.app.utils.WebRequest.loadDataFromNetwork(WebRequest.java:54)
10-07 15:51:45.679 29710-5937/com.net.app W/System.err: at com.octo.android.robospice.request.CachedSpiceRequest.loadDataFromNetwork(CachedSpiceRequest.java:48)
10-07 15:51:45.680 29710-5937/com.net.app W/System.err: at com.octo.android.robospice.request.DefaultRequestRunner.processRequest(DefaultRequestRunner.java:150)
10-07 15:51:45.680 29710-5937/com.net.app W/System.err: at com.octo.android.robospice.request.DefaultRequestRunner$1.run(DefaultRequestRunner.java:217)
10-07 15:51:45.680 29710-5937/com.net.app W/System.err: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
10-07 15:51:45.680 29710-5937/com.net.app W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
10-07 15:51:45.681 29710-5937/com.net.app W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
10-07 15:51:45.681 29710-5937/com.net.app W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
10-07 15:51:45.681 29710-5937/com.net.app W/System.err: at java.lang.Thread.run(Thread.java:818)
10-07 15:51:45.681 29710-5937/com.net.app W/System.err: Caused by: java.net.ConnectException: failed to connect to /192.168.1.129 (port 8081) after 15000ms: isConnected failed: EHOSTUNREACH (No route to host)
10-07 15:51:45.682 29710-5937/com.net.app W/System.err: at libcore.io.IoBridge.isConnected(IoBridge.java:238)
10-07 15:51:45.682 29710-5937/com.net.app W/System.err: at libcore.io.IoBridge.connectErrno(IoBridge.java:171)
10-07 15:51:45.683 29710-5937/com.net.app W/System.err: at libcore.io.IoBridge.connect(IoBridge.java:122)
10-07 15:51:45.683 29710-5937/com.net.app W/System.err: at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
10-07 15:51:45.683 29710-5937/com.net.app W/System.err: at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:456)
10-07 15:51:45.683 29710-5937/com.net.app W/System.err: at java.net.Socket.connect(Socket.java:882)
10-07 15:51:45.683 29710-5937/com.net.app W/System.err: at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:124)
10-07 15:51:45.683 29710-5937/com.net.app W/System.err: at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:149)
10-07 15:51:45.685 29710-5937/com.net.app W/System.err: ... 16 more
10-07 15:51:45.685 29710-5937/com.net.app W/System.err: Caused by: android.system.ErrnoException: isConnected failed: EHOSTUNREACH (No route to host)
10-07 15:51:45.686 29710-5937/com.net.app W/System.err: at libcore.io.IoBridge.isConnected(IoBridge.java:223)
10-07 15:51:45.686 29710-5937/com.net.app W/System.err: ... 23 more
There can be two problems. First the firewall can prevent access. Switch it off for a test. Second: Maybe Tomcat is bound to localhost/127.0.0.1 only. Have a check in its settings.
Fixed,My public IP of my PC is different,Public IP of android phone is different(connected to another wi-fi),But both should be same
while updating app from playstore I'm getting the error..
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available 09-02 17:10:03.586 11866-12008/? W/System.err: java.lang.ClassNotFoundException: android.net.ZeroBalanceHelper 09-02 17:10:03.586 11866-12008/? W/System.err: at java.lang.Class.classForName(Native Method) 09-02 17:10:03.587 11866-12008/? W/System.err: at java.lang.Class.forName(Class.java:324) 09-02 17:10:03.587 11866-12008/? W/System.err: at java.lang.Class.forName(Class.java:285) 09-02 17:10:03.587 11866-12008/? W/System.err: at
com.android.okhttp.internal.http.ZeroBalanceHelperClass.getFeatureFlagValue(ZeroBalanceHelperClass.java:39)
09-02 17:10:03.587 11866-12008/? W/System.err: at
com.android.okhttp.internal.http.HttpEngine.followUpRequest(HttpEngine.java:1090)
09-02 17:10:03.588 11866-12008/? W/System.err: at
com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:393)
09-02 17:10:03.588 11866-12008/? W/System.err: at
com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:501)
09-02 17:10:03.588 11866-12008/? W/System.err: at
com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
09-02 17:10:03.588 11866-12008/? W/System.err: at
com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25)
09-02 17:10:03.588 11866-12008/? W/System.err: at la.a(:com.google.android.gms.DynamiteModulesA:193) 09-02 17:10:03.588 11866-12008/? W/System.err: at lb.a(:com.google.android.gms.DynamiteModulesA:151) 09-02 17:10:03.588 11866-12008/? W/System.err: at jt.c(:com.google.android.gms.DynamiteModulesA:608) 09-02 17:10:03.588 11866-12008/? W/System.err: at lm.run(:com.google.android.gms.DynamiteModulesA:242) 09-02 17:10:03.588 11866-12008/? W/System.err: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423) 09-02 17:10:03.588 11866-12008/? W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 09-02 17:10:03.588 11866-12008/? W/System.err: at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
09-02 17:10:03.588 11866-12008/? W/System.err: at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
09-02 17:10:03.588 11866-12008/? W/System.err: at java.lang.Thread.run(Thread.java:818) 09-02 17:10:03.588 11866-12008/? W/System.err: Caused by: java.lang.ClassNotFoundException: android.net.ZeroBalanceHelper 09-02 17:10:03.592 11866-12008/? W/System.err: at java.lang.Class.classForName(Native Method) 09-02 17:10:03.592 11866-12008/? W/System.err: at java.lang.BootClassLoader.findClass(ClassLoader.java:781) 09-02 17:10:03.592 11866-12008/? W/System.err: at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) 09-02 17:10:03.592 11866-12008/? W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:469) 09-02 17:10:03.592 11866-12008/? W/System.err: ... 18 more
app doesn't run after this error, any help will be highly appreciated.
I'm using Retrofit 1.9.0 for my RESTclient in android, It get error like i post below:
retrofit.RetrofitError: sendto failed: EPIPE (Broken pipe)
04-03 20:18:51.995 8634-8634/up.tech.opener W/System.err: at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:395)
04-03 20:18:51.995 8634-8634/up.tech.opener W/System.err: at retrofit.RestAdapter$RestHandler.access$100(RestAdapter.java:220)
04-03 20:18:51.995 8634-8634/up.tech.opener W/System.err: at retrofit.RestAdapter$RestHandler$2.obtainResponse(RestAdapter.java:278)
04-03 20:18:51.995 8634-8634/up.tech.opener W/System.err: at retrofit.CallbackRunnable.run(CallbackRunnable.java:42)
04-03 20:18:51.995 8634-8634/up.tech.opener W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
04-03 20:18:51.996 8634-8634/up.tech.opener W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
04-03 20:18:51.996 8634-8634/up.tech.opener W/System.err: at retrofit.Platform$Android$2$1.run(Platform.java:142)
04-03 20:18:51.996 8634-8634/up.tech.opener W/System.err: at java.lang.Thread.run(Thread.java:838)
04-03 20:18:51.996 8634-8634/up.tech.opener W/System.err: Caused by: java.net.SocketException: sendto failed: EPIPE (Broken pipe)
04-03 20:18:51.997 8634-8634/up.tech.opener W/System.err: at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:550)
04-03 20:18:51.997 8634-8634/up.tech.opener W/System.err: at libcore.io.IoBridge.sendto(IoBridge.java:519)
04-03 20:18:51.998 8634-8634/up.tech.opener W/System.err: at java.net.PlainSocketImpl.write(PlainSocketImpl.java:511)
04-03 20:18:51.998 8634-8634/up.tech.opener W/System.err: at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46)
04-03 20:18:51.998 8634-8634/up.tech.opener W/System.err: at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269)
04-03 20:18:51.998 8634-8634/up.tech.opener W/System.err: at java.io.OutputStream.write(OutputStream.java:82)
04-03 20:18:51.998 8634-8634/up.tech.opener W/System.err: at libcore.net.http.HttpEngine.writeRequestHeaders(HttpEngine.java:659)
04-03 20:18:51.998 8634-8634/up.tech.opener W/System.err: at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:808)
04-03 20:18:51.998 8634-8634/up.tech.opener W/System.err: at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:293)
04-03 20:18:51.998 8634-8634/up.tech.opener W/System.err: at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:505)
04-03 20:18:51.998 8634-8634/up.tech.opener W/System.err: at retrofit.client.UrlConnectionClient.readResponse(UrlConnectionClient.java:73)
04-03 20:18:51.999 8634-8634/up.tech.opener W/System.err: at retrofit.client.UrlConnectionClient.execute(UrlConnectionClient.java:38)
04-03 20:18:51.999 8634-8634/up.tech.opener W/System.err: at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:326)
04-03 20:18:51.999 8634-8634/up.tech.opener W/System.err: ... 7 more
Can anyone know how to fixing this please?
Just to make sure that your configuration is correct
check if you have added all the required permissions to your AndroidManifest.xml (EPIPE happens often as a result of missing permissions)
Script might be getting stuck somewhere in the code, hence not posting the response meanwhile server would have closed the socket.
Increasing timeout values
okHttpClient = new OkHttpClient();
okHttpClient.setReadTimeout(60, TimeUnit.SECONDS);
okHttpClient.setConnectTimeout(60, TimeUnit.SECONDS);
Add this on your gradle
compile 'com.squareup.okhttp:okhttp:2.0.0'
Compile 'come.scrap.okhttp:okhttp-urlconnection:2.0.0'
if not set port in retrofit helper , like this : http://172.51.65.62
retforit try to connect to : http://172.51.65.62:80
now if used any port else port number 80 , you will get this error
for fix this error change ip or address like : http://172.51.65.62:8256