gsy_github_app_flutter
gsy_github_app_flutter copied to clipboard
如果出现登陆失败或者请求失败
1、确定你申请的 ClientId 和 ClientSecret 是正确的。
2、确定正常使用用户名密码登陆或者 OAuth 登陆。
3、Connection refused 的情况请更换网络环境。
The message 'Connection Refused' has two main causes:
Nothing is listening on the IP:Port you are trying to connect to.
The port is blocked by a firewall.
Http 请求 422 请检查申请的 ClientId、 ClientSecret,登陆用用户名和密码,不用使用邮箱;授权登记方式记得 readme 中的 Authorization callback URL 一栏必须填入 gsygithubapp://authed
Connection Refused
问题是Github Api 和我们天朝网络的兼容问题,建议稍后再试或者换个网络环境(wifi、4G、电信/移动/联通)
登录异常呢
登录异常呢
怎么样的异常?是自己编译的还是下载的,442 可以换个网络环境试试
登录异常呢
怎么样的异常?是自己编译的还是下载的,442 可以换个网络环境试试
是自己编译的呢,挂VPN也试了,依然422
@AngelSunpx 推测是你申请的 github appid 和 appsercet 的问题,并且不要使用邮箱和密码登录,使用用户名和密码登录,或者授权登录。可以试试下载打包的 apk
登录异常呢
怎么样的异常?是自己编译的还是下载的,442 可以换个网络环境试试
是自己编译的呢,挂VPN也试了,依然422
我这边也是422,求助;
登陆异常提示422; client_id等OK; 无论什么网络都是422
@raorq 你用下载的app会吗?最近github 的dns和ssl部分区域是出现了问题。 id 在首页 readme 有教程
新版现在登录应该可以用授权登录了试试
如果出现如上图所示问题, Authorize Carguo
按键无法点击,那么一般是设备问题, Github 不支持当前浏览器,所以换个设备就可以了,只要在新的设备上授权完成,那么回到旧的设备也是可以正常登录。
正常登录如图所示
出现异常。 SocketException (SocketException: OS Error: Connection refused, errno = 111, address = avatars.githubusercontent.com, port = 45190)
请求异常信息: {"message":"Missing the 'notifications' scope.","documentation_url":"https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user"} D/CompatibilityChangeReporter(14872): Compat change id reported: 147798919; UID 10307; state: DISABLED
@ITmxs SocketException 问题上面说了,然后 请求异常信息 没有复现
type null is not subtype of object
请求信息异常如何处理啊
I/flutter (25350): 请求头: {content-type: application/json; charset=utf-8, Authorization: null}
W/ContentCatcher(25350): Failed to notify a WebView
E/InputMethodManager(25350): b/117267690: Failed to get fallback IMM with expected displayId=8 actual IMM#displayId=0 view=io.flutter.plugins.webviewflutter.InputAwareWebView{fcf75fb VFEDHVC.. ........ 0,0-1080,1191}
I/flutter (25350): 请求异常: DioError [DioErrorType.other]: type 'Null' is not a subtype of type 'Object'
I/flutter (25350): #0 DefaultHttpClientAdapter.fetch.
请求信息异常如何处理啊
I/flutter (25350): 请求头: {content-type: application/json; charset=utf-8, Authorization: null} W/ContentCatcher(25350): Failed to notify a WebView E/InputMethodManager(25350): b/117267690: Failed to get fallback IMM with expected displayId=8 actual IMM#displayId=0 view=io.flutter.plugins.webviewflutter.InputAwareWebView{fcf75fb VFEDHVC.. ........ 0,0-1080,1191} I/flutter (25350): 请求异常: DioError [DioErrorType.other]: type 'Null' is not a subtype of type 'Object' I/flutter (25350): #0 DefaultHttpClientAdapter.fetch. (package:dio/src/adapters/io_adapter.dart:56:64) I/flutter (25350): #1 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:397:8) I/flutter (25350): #2 DefaultHttpClientAdapter.fetch (package:dio/src/adapters/io_adapter.dart:56:23) I/flutter (25350): I/flutter (25350): #3 DioMixin._dispatchRequest (package:dio/src/dio_mixin.dart:625:22) I/flutter (25350): I/flutter (25350): #4 DioMixin.fetch._requestInterceptorWrapper.... (package:dio/src/dio_mixin.dart)
我找到解决方案了
lib/common/net/interceptors/log_interceptor.dart:10
第23行添加如下代码
options.headers.forEach((k, v) {
if (v == null) {
options.headers[k] = "";
}
});
找到解决方案了 https://github.com/CarGuo/gsy_github_app_flutter/issues/643#issuecomment-803556246
If you want to get the emulator to use the VPN on your PC, try this: https://stackoverflow.com/questions/6943151/how-can-i-get-my-android-emulator-use-my-computers-vpn-interface/76684278#76684278