Skip to content

gh auth login failes with an error: "Too many requests have been made in the same timeframe. (slow_down)" #9370

@kyoh86

Description

@kyoh86

Describe the bug

When I try to log in with the GitHub CLI, I get a one-time code and an error message and fail.

Please open this URL to continue in your web browser: https://github.com/login/device

Authentication in web browser failed: Too many requests in the same time frame. (slow_down)

It looks like GitHub is denying access because the CLI is calling the API (probably for polling) too many times.
I didn't try to log in that much, but I got the error.

gh version: 2.53.0 (2024-07-17)

Steps to reproduce the behavior

  1. Type this 'gh auth login'
  2. Wait about 10 seconds

Expected vs actual behavior

Success to login

Logs

Paste the activity from your command line. Redact if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggh-authrelating to the gh auth command

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions