go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.08k stars 5.41k forks source link

[GitHub Migration] Pagination limited on repos with many issues #31856

Open TobiGr opened 3 weeks ago

TobiGr commented 3 weeks ago

Description

When trying to migrate repositories with a large number of issues and PRs, I get following error:

Migrate repository from https://github.com/TeamNewPipe/NewPipe failed: error while listing repos: GET https://api.github.com/repos/TeamNewPipe/NewPipe/issues/comments?direction=asc&page=1112&per_page=27&sort=created: 422 In order to keep the API fast for everyone, pagination is limited for this resource. Check the rel=last link relation in the Link response header to see how far back you can traverse. []

You might need to use a different method to retrieve data when this error occurs.

Gitea Version

1.21.11

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

self-hosted via docker

Database

PostgreSQL

lunny commented 3 weeks ago

Hm, the rate limit should be handled.