8000 min auth login --device drops GitHub's error when GitHub refuses the device-code request · Issue #3576 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

min auth login --device drops GitHub's error when GitHub refuses the device-code request #3576

Closed

Description

@norrietaylor

What happens

On nightly 0.8.0-dev.463 (macOS), min auth login --device once failed with:

error: GitHub refused the sign-in request to https://github.com/login/device/code (400 Bad Request)

An immediate retry succeeded. The cause cannot be seen, because min keeps only the HTTP status and drops the reply body, where GitHub puts error and error_description (for example slow_down, device_flow_disabled, or a rate limit).

Expected

When GitHub refuses the request and its reply carries error / error_description, the message includes them, so the user and a bug report can tell a transient refusal from a configuration one. Where the error is known to be transient, the message says to run min auth login --device again.

Where

  • crates/minimal/src/cmd/auth.rs: post_form, which calls send_form and, when the status is not a success, bails with GitHub refused the sign-in request to {url} ({status}) without reading text.

Workaround

Run min auth login --device again.

epic: #1501

Activity

  1. norrietaylor commented on Nov 19, 2026

    @norrietaylor
    MemberAuthor

    Fixed by #3608 (task #3584).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0