You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the server responds with a HTTP status 400 or above a FileNotFoundException is thrown
Is it a crash report? Submit stack traces or anything that you think would help
com.pusher.client.AuthorizationFailureException: java.io.FileNotFoundException: http://10.0.2.2:8000/api/device/auth
at com.pusher.client.util.HttpAuthorizer.authorize(HttpAuthorizer.java:146)
at com.pusher.client.channel.impl.PrivateChannelImpl.getAuthResponse(PrivateChannelImpl.java:130)
at com.pusher.client.channel.impl.PrivateChannelImpl.toSubscribeMessage(PrivateChannelImpl.java:90)
at com.pusher.client.channel.impl.ChannelManager$1.run(ChannelManager.java:149)
at com.pusher.client.util.Factory$1.run(Factory.java:119)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Caused by: java.io.FileNotFoundException: http://10.0.2.2:8000/api/device/auth
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:255)
at com.pusher.client.util.HttpAuthorizer.authorize(HttpAuthorizer.java:128)
at com.pusher.client.channel.impl.PrivateChannelImpl.getAuthResponse(PrivateChannelImpl.java:130)
at com.pusher.client.channel.impl.PrivateChannelImpl.toSubscribeMessage(PrivateChannelImpl.java:90)
at com.pusher.client.channel.impl.ChannelManager$1.run(ChannelManager.java:149)
at com.pusher.client.util.Factory$1.run(Factory.java:119)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Any improvements you suggest
When a status 400 or above is returned from the server get the errorStream instead of the inputStream.
if (responseStatus >= HTTP_BAD_REQUEST) {
is = connection.getErrorStream();
} else {
is = connection.getInputStream();
}
CC @pusher/mobile
The text was updated successfully, but these errors were encountered:
What is the issue?
When the server responds with a HTTP status 400 or above a FileNotFoundException is thrown
Is it a crash report? Submit stack traces or anything that you think would help
Any improvements you suggest
When a status 400 or above is returned from the server get the errorStream instead of the inputStream.
CC @pusher/mobile
The text was updated successfully, but these errors were encountered: