likyh opened a new issue, #2786:
URL: https://github.com/apache/incubator-devlake/issues/2786

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   This URL 
`https://gitee.com/api/v5/repos/layui/layui/pulls/45/commits?access_token=……` 
will return "404 Not Found". And it causes collection fail
   
   This repo: https://gitee.com/layui/layui
   
   ```
   time="2022-08-22 10:13:22" level=info msg=" [gitee] finished step: 10 / 26"
   time="2022-08-22 10:13:22" level=info msg=" [gitee] executing subtask 
collectApiPullRequestCommits"
   time="2022-08-22 10:13:22" level=info msg=" [gitee] 
[collectApiPullRequestCommits] start api collection"
   time="2022-08-22 10:13:23" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 1"
   time="2022-08-22 10:13:26" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 10"
   time="2022-08-22 10:13:29" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 19"
   time="2022-08-22 10:13:33" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 28"
   time="2022-08-22 10:13:36" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 37"
   time="2022-08-22 10:13:40" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 47"
   time="2022-08-22 10:13:43" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 56"
   time="2022-08-22 10:13:46" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 65"
   time="2022-08-22 10:13:49" level=warning msg=" [gitee] retry #0 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:13:49" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 73"
   time="2022-08-22 10:13:50" level=warning msg=" [gitee] retry #0 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:13:51" level=warning msg=" [gitee] retry #0 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:13:52" level=warning msg=" [gitee] retry #0 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:13:53" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 79"
   time="2022-08-22 10:13:56" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 88"
   time="2022-08-22 10:13:57" level=warning msg=" [gitee] retry #0 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:13:59" level=warning msg=" [gitee] retry #0 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:13:59" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 96"
   time="2022-08-22 10:14:03" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 105"
   time="2022-08-22 10:14:04" level=warning msg=" [gitee] retry #0 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:06" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 112"
   time="2022-08-22 10:14:09" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 122"
   time="2022-08-22 10:14:12" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 131"
   time="2022-08-22 10:14:16" level=warning msg=" [gitee] retry #0 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:16" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 140"
   time="2022-08-22 10:14:17" level=warning msg=" [gitee] retry #0 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:19" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 148"
   time="2022-08-22 10:14:21" level=warning msg=" [gitee] retry #0 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:22" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 155"
   time="2022-08-22 10:14:26" level=info msg=" [gitee] 
[collectApiPullRequestCommits] finished records: 165"
   time="2022-08-22 10:14:28" level=warning msg=" [gitee] retry #1 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:28" level=warning msg=" [gitee] retry #1 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:29" level=warning msg=" [gitee] retry #1 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:29" level=warning msg=" [gitee] retry #1 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:29" level=warning msg=" [gitee] retry #1 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:30" level=warning msg=" [gitee] retry #1 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:30" level=warning msg=" [gitee] retry #1 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:30" level=warning msg=" [gitee] retry #1 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:31" level=warning msg=" [gitee] retry #1 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:31" level=warning msg=" [gitee] retry #1 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:31" level=warning msg=" [gitee] retry #2 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:32" level=warning msg=" [gitee] retry #2 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:32" level=warning msg=" [gitee] retry #2 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:32" level=warning msg=" [gitee] retry #2 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:33" level=warning msg=" [gitee] retry #2 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:33" level=warning msg=" [gitee] retry #2 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:34" level=warning msg=" [gitee] retry #2 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:34" level=warning msg=" [gitee] retry #2 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:34" level=warning msg=" [gitee] retry #2 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:35" level=warning msg=" [gitee] retry #2 for http 
code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:35" level=error msg=" [gitee] retry exceeded times: 
3, err: http code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:35" level=error msg=" [gitee] retry exceeded times: 
3, err: http code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:36" level=error msg=" [gitee] retry exceeded times: 
3, err: http code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:36" level=error msg=" [gitee] retry exceeded times: 
3, err: http code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:37" level=error msg=" [gitee] retry exceeded times: 
3, err: http code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:37" level=error msg=" [gitee] retry exceeded times: 
3, err: http code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:37" level=error msg=" [gitee] retry exceeded times: 
3, err: http code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:37" level=error msg=" [gitee] retry exceeded times: 
3, err: http code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:38" level=error msg=" [gitee] retry exceeded times: 
3, err: http code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:38" level=error msg=" [gitee] retry exceeded times: 
3, err: http code error[404]:[{"message":"404 Not Found"}]"
   time="2022-08-22 10:14:38" level=info msg=" [gitee] 
[collectApiPullRequestCommits] end api collection error: 
%!w(*errors.errorString=&{[http code error[404]:[{"message":"404 Not Found"}] 
http code error[404]:[{"message":"404 Not Found"}] http code 
error[404]:[{"message":"404 Not Found"}] http code error[404]:[{"message":"404 
Not Found"}] http code error[404]:[{"message":"404 Not Found"}] http code 
error[404]:[{"message":"404 Not Found"}] http code error[404]:[{"message":"404 
Not Found"}] http code error[404]:[{"message":"404 Not Found"}] http code 
error[404]:[{"message":"404 Not Found"}] http code error[404]:[{"message":"404 
Not Found"}]]})"
   panic: [http code error[404]:[{"message":"404 Not Found"}] http code 
error[404]:[{"message":"404 Not Found"}] http code error[404]:[{"message":"404 
Not Found"}] http code error[404]:[{"message":"404 Not Found"}] http code 
error[404]:[{"message":"404 Not Found"}] http code error[404]:[{"message":"404 
Not Found"}] http code error[404]:[{"message":"404 Not Found"}] http code 
error[404]:[{"message":"404 Not Found"}] http code error[404]:[{"message":"404 
Not Found"}] http code error[404]:[{"message":"404 Not Found"}]]
   ```
   
   
   ### What you expected to happen
   
   Skip not found PRs and continue collection.
   
   ### How to reproduce
   
   Just use plugin gitee and collect https://gitee.com/layui/layui.
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   main
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to