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

Open
opened 2025-11-02 10:41:03 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @TobiGr on GitHub (Aug 17, 2024).

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

Originally created by @TobiGr on GitHub (Aug 17, 2024). ### 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
GiteaMirror added the type/bug label 2025-11-02 10:41:03 -06:00
Author
Owner

@lunny commented on GitHub (Aug 17, 2024):

Hm, the rate limit should be handled.

@lunny commented on GitHub (Aug 17, 2024): Hm, the rate limit should be handled.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13395