AppAuth-Android
                                
                                
                                
                                    AppAuth-Android copied to clipboard
                            
                            
                            
                        AuthorizationException: {"type":0,"code":3,"errorDescription":"Network error"}
Checklist:
- [x] I am using the latest release
 - [x] I searched for existing GitHub issues
 - [x] I read the documentation
 - [x] I verified the client configuration matches the information in the identity provider (or I am using dynamic client registration)
 - [x] I am either using a custom URI scheme or 
httpswith App Links for client redirect. - [x] I can reproduce the issue in the demo app (optional)
 
Configuration
- Version: 0.11.1
 - Integration: Java
 - Identity provider: Auth0
 
Issue Description
i am getting AuthorizationException after login while getting token from mAuthService.performTokenRequest. here is the error :
AuthorizationException: {"type":0,"code":3,"errorDescription":"Network error"}
Sorry, but you need to do your own debugging to figure this out. There's not enough information provide any sort of assistance.
could you please help me to find out the root cause for this
Hi i debug my code and found out that doInBackground method inside AuthorizationService class give exception i.e java.net.SocketTimeoutException: timeout.How we can handle this.
Not sure what your expectation is here. As far as I can tell from this thread, you get a typical network connection error which is surfaced in your app as an AuthorizationException. It's up to you and your own app logic to determine what the app or the user needs to do in this case.
My server is taking more than 10 sec for getting the response. That's why I am getting the above issue. Could you please tell me how to set the timeout in my code.
Need to create your own ConnectionBuilder per https://github.com/openid/AppAuth-Android#customizing-the-connection-builder-for-http-requests The default one is here: https://github.com/openid/AppAuth-Android/blob/master/library/java/net/openid/appauth/connectivity/DefaultConnectionBuilder.java
Marking this as resolved for now. Feel free to reply if you need further help.