Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Http status error [403] #295

Closed
hansugus opened this issue Mar 1, 2019 · 7 comments
Closed

Http status error [403] #295

hansugus opened this issue Mar 1, 2019 · 7 comments

Comments

@hansugus
Copy link

hansugus commented Mar 1, 2019

flutter: 请求异常: DioError [DioErrorType.RESPONSE]: Http status error [403]
flutter: 请求异常url: https://api.github.com/users/用户名/received_events?page=1&per_page=20
一半几率成功,一半几率报403

@CarGuo
Copy link
Owner

CarGuo commented Mar 1, 2019

自己打包的还是下载的…我这边目前测试没遇到过哦

@hansugus
Copy link
Author

hansugus commented Mar 2, 2019

自己打包的,我的是IOS ; 大部分功能正常使用,部分请求403;Github需要特殊设置?

@CarGuo
Copy link
Owner

CarGuo commented Mar 2, 2019

一般如果你申请了github appid和appsercet正确的,之后用账号密码获取token应该没问题。403 看起来权限问题,你可以看看会不会是和一些用户有关,比如组织或者个人

@CarGuo CarGuo closed this as completed Mar 5, 2019
@fmricky
Copy link

fmricky commented Apr 23, 2019

@CarGuo Github App 的 Permissions 是不是需要什么特殊的设置,开放某些权限?我这边也是大量403.

@CarGuo
Copy link
Owner

CarGuo commented Apr 23, 2019

哪些地方403?需要的是用用户名登录,不是邮箱哦!然后看看token有没有过期

@fmricky
Copy link

fmricky commented Apr 23, 2019

@CarGuo
运行时调试信息输出如下,我把403的部分抽出来,可能还有我没有运行到的页面,只是在趋势里头运行了一下
用户名和邮箱都试过了,token是最近重置过的新token。

flutter: 请求异常: DioError [DioErrorType.RESPONSE]: Http status error [403]
flutter: 请求异常信息: {"message":"Resource not accessible by integration","documentation_url":"https://developer.github.com/v3/repos/branches/#list-branches"}
flutter: 请求异常: DioError [DioErrorType.RESPONSE]: Http status error [404]
flutter: 请求异常信息: {"message":"Not Found","documentation_url":"https://developer.github.com/v3/activity/starring/#check-if-you-are-starring-a-repository"}
flutter: 请求异常: DioError [DioErrorType.RESPONSE]: Http status error [403]
flutter: 请求异常信息: {"message":"Resource not accessible by integration","documentation_url":"https://developer.github.com/v3/issues/#list-issues-for-a-repository"}
flutter: 请求异常: DioError [DioErrorType.RESPONSE]: Http status error [403]
flutter: 请求异常信息: {"message":"Resource not accessible by integration","documentation_url":"https://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received"}
flutter: 请求异常: DioError [DioErrorType.RESPONSE]: Http status error [403]
flutter: 请求异常信息: {"message":"Resource not accessible by integration","documentation_url":"https://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories"}
flutter: 请求异常: DioError [DioErrorType.RESPONSE]: Http status error [403]
flutter: 请求异常信息: {"message":"Resource not accessible by integration","documentation_url":"https://developer.github.com/v3/repos/contents/#get-the-readme"}

@CarGuo
Copy link
Owner

CarGuo commented Apr 23, 2019

趋势的数据是爬网页哦,并没有通过接口请求

@CarGuo CarGuo mentioned this issue Nov 21, 2019
@w497763094 w497763094 mentioned this issue Mar 10, 2020
@JevonShi JevonShi mentioned this issue Mar 10, 2020
@HaobinXu HaobinXu mentioned this issue Mar 20, 2020
@luan823230 luan823230 mentioned this issue Mar 24, 2020
@hzg1105 hzg1105 mentioned this issue Jun 14, 2020
@wangkr wangkr mentioned this issue Jul 4, 2020
@jayVRIY jayVRIY mentioned this issue Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants