Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using the api to migrate a gitlab repo is triggering "secondary rate limit" #127

Open
3 of 7 tasks
mattip opened this issue Nov 14, 2021 · 4 comments
Open
3 of 7 tasks
Labels
Type: Bug Something isn't working as documented
Projects

Comments

@mattip
Copy link

mattip commented Nov 14, 2021

Checklist

Environment

Versions

@octokit/rest@18.0.0

What happened?

When using https://github.com/piceaTech/node-gitlab-2-github to convert a gitlab repo to github, I am getting an error

RequestError [HttpError]: You have exceeded a secondary rate limit and have been temporarily blocked from content creation. Please retry your request again later.

The package waits 2 seconds between API calls, and checks the X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset fields.

The source repo has over 3000 issues, many with valid @user references. I am migrating it to a private personal repo to prevent sending notifications to team members.

This seems to happen after creating 30 issues.

Minimal test case to reproduce the problem

What did you expect to happen?

I expected to be able to create more than 30 issues in an hour.

xref piceaTech/node-gitlab-2-github#28

@mattip mattip added the Type: Bug Something isn't working as documented label Nov 14, 2021
@ghost ghost added this to Bugs in JS Nov 14, 2021
@mattip
Copy link
Author

mattip commented Nov 15, 2021

Could it be there is a non-documented limit on creating more than 40 issues per hour?

@mattip
Copy link
Author

mattip commented Nov 16, 2021

... now it is down to 25 issues / hour

@wolfy1339
Copy link
Member

I'm sorry to hear that you're having issues with throttling. I'm not very familiar with the codebase and the REST API, so unfortunately I can't really be of any help.

Unfortunately the JS @octokit packages currently have no active maintainer.

You can subscribe to this discussion for any further updates.

@mattip
Copy link
Author

mattip commented Nov 16, 2021

So sorry to hear. The discussion you linked to is locked, so I cannot subscribe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as documented
Projects
No open projects
JS
  
Bugs
Development

No branches or pull requests

2 participants