gotsunami/gitlab-copy

GitLab.com rate limits kick in

Closed this issue · 0 comments

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?