{"action":"created","issue":{"url":"https://api.github.com/repos/RestComm/restcomm-android-sdk/issues/455","repository_url":"https://api.github.com/repos/RestComm/restcomm-android-sdk","labels_url":"https://api.github.com/repos/RestComm/restcomm-android-sdk/issues/455/labels{/name}","comments_url":"https://api.github.com/repos/RestComm/restcomm-android-sdk/issues/455/comments","events_url":"https://api.github.com/repos/RestComm/restcomm-android-sdk/issues/455/events","html_url":"https://github.com/RestComm/restcomm-android-sdk/issues/455","id":189096935,"number":455,"title":"Failed to authenticate after max attempts","user":{"login":"atsakiridis","id":8684513,"avatar_url":"https://avatars.githubusercontent.com/u/8684513?v=3","gravatar_id":"","url":"https://api.github.com/users/atsakiridis","html_url":"https://github.com/atsakiridis","followers_url":"https://api.github.com/users/atsakiridis/followers","following_url":"https://api.github.com/users/atsakiridis/following{/other_user}","gists_url":"https://api.github.com/users/atsakiridis/gists{/gist_id}","starred_url":"https://api.github.com/users/atsakiridis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atsakiridis/subscriptions","organizations_url":"https://api.github.com/users/atsakiridis/orgs","repos_url":"https://api.github.com/users/atsakiridis/repos","events_url":"https://api.github.com/users/atsakiridis/events{/privacy}","received_events_url":"https://api.github.com/users/atsakiridis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-14T12:09:15Z","updated_at":"2016-11-14T12:16:23Z","closed_at":null,"body":"Test Fairy session [here](https://telestax.testfairy.com/projects/1897533-restcommolympus/builds/4635482/sessions/58)\r\n\r\nStacktrace:\r\n\r\njava.lang.RuntimeException: Failed to authenticate after max attempts\r\n\tat org.restcomm.android.sdk.SignalingClient.JainSipClient.JainSipClient.jainSipAuthenticate(JainSipClient.java:635)\r\n\tat org.restcomm.android.sdk.SignalingClient.JainSipClient.JainSipCall.processResponse(JainSipCall.java:437)\r\n\tat org.restcomm.android.sdk.SignalingClient.JainSipClient.JainSipClient$3.run(JainSipClient.java:768)\r\n\tat android.os.Handler.handleCallback(Handler.java:739)\r\n\tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n\tat android.os.Looper.loop(Looper.java:135)\r\n\tat android.os.HandlerThread.run(HandlerThread.java:61)"},"comment":{"url":"https://api.github.com/repos/RestComm/restcomm-android-sdk/issues/comments/260320713","html_url":"https://github.com/RestComm/restcomm-android-sdk/issues/455#issuecomment-260320713","issue_url":"https://api.github.com/repos/RestComm/restcomm-android-sdk/issues/455","id":260320713,"user":{"login":"atsakiridis","id":8684513,"avatar_url":"https://avatars.githubusercontent.com/u/8684513?v=3","gravatar_id":"","url":"https://api.github.com/users/atsakiridis","html_url":"https://github.com/atsakiridis","followers_url":"https://api.github.com/users/atsakiridis/followers","following_url":"https://api.github.com/users/atsakiridis/following{/other_user}","gists_url":"https://api.github.com/users/atsakiridis/gists{/gist_id}","starred_url":"https://api.github.com/users/atsakiridis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atsakiridis/subscriptions","organizations_url":"https://api.github.com/users/atsakiridis/orgs","repos_url":"https://api.github.com/users/atsakiridis/repos","events_url":"https://api.github.com/users/atsakiridis/events{/privacy}","received_events_url":"https://api.github.com/users/atsakiridis/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T12:16:23Z","updated_at":"2016-11-14T12:16:23Z","body":"Based on logs we shouldn't be getting such a behavior. For the max attempts error to occur Restcomm needs to challenge the same request more than 3 times with Proxy Authentication required, which isn't the case. What happens here is that we have 3 occurrences of the following flow, with register-refresh interval:\r\n1. Send REGISTER\r\n2. Get Proxy Auth\r\n3. Send REGISTER with creds\r\n4. Get FORBIDDEN\r\n\r\nWhich is legit and shouldn't be causing any exception. \r\n\r\nI also tried locally the exact same thing to see if there's any case that the 3 different register jobs got messed up somehow, but it seems to be working fine for me.\r\n\r\nLet's leave code as is for now to be able to monitor until we get more info. One we figure that out we should remove the Runtime Exception and probably just issue an error (which will be mean an issue with Restcomm probably, i.e. challenging for creds ever after it has received them)"}}
{"actor":{"display_login":"atsakiridis"}}