gotsunami / gitlab-copy

Batch copy issues between GitLab instances, with some cool features
MIT License
128 stars 20 forks source link

GitLab.com rate limits kick in #52

Closed camilstaps closed 2 years ago

camilstaps commented 2 years ago

According to https://docs.gitlab.com/ee/user/gitlab_com/index.html#gitlabcom-specific-rate-limits, there is now a 60/min rate limit on note creation.

When using this tool, I get errors like:

2021/11/09 11:28:46 target: error creating note for issue #7: POST https://gitlab.com/api/v4/projects/.../issues/7/notes: 429 {message: {error: This endpoint has been requested too many times. Try again later.}}

This is unfortunate because the next time the tool is started it will start from the next issue, so there may be notes missing from the previous issue.

Maybe a 1s delay can be added when adding notes?