ThirtyDegreesRay / OpenHub

An open source GitHub Android client app, faster and concise.
https://thirtydegreesray.github.io/OpenHub/
GNU General Public License v3.0
4.23k stars 413 forks source link

ConnectException during login #395

Open ildar opened 3 years ago

ildar commented 3 years ago

unable to login. Logcat isn't very helpful:

05-20 10:56:13.481  2082 19050 I ActivityManager: START u0 {act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=openhub://login?code=xxx&state=yyy flg=0x10000000 cmp=com.thirtydegreesray.openhub/.ui.activity.LoginActivity (has extras)} from uid 10315 on display 0
...
05-20 10:56:13.622 26713 11190 D AppRetrofit: https://github.com/login/oauth/access_token?client_id=zzz&client_secret=zzZ&code=xxx&state=yyy
...
05-20 10:51:06.786 26713 26736 W System.err: java.net.ConnectException: Connection refused
05-20 10:51:06.786 26713 26736 W System.err:    at java.net.PlainSocketImpl.socketConnect(Native Method)
05-20 10:51:06.786 26713 26736 W System.err:    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:334)

and alike. I tried the URL (AppRetrofit) with CURL and github's response was:

Connection #0 to host github.com left intact error=bad_verification_code&error_description=The+code+passed+is+incorrect+or+expired.&error_uri=https%3A%2F%2Fdocs.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-oauth-app-access-token-request-errors%2F%23bad-verification-code

Please check.