github / GitHub REST API
GitHub REST API: User Agent Rejected
The request lacks a valid User-Agent header and GitHub rejects it.
Visible symptoms
- The request is rejected because of a missing or invalid User-Agent.
Safe verification and recovery
Set a User-Agent
Use your username or application name as the User-Agent value. curl sends one by default.
Matching evidence and limitations
Reported error signals
Matches the documented error signal; it identifies the documented case, not the exact root cause of your request.
The local analyzer never executes suggested commands or treats a possible match as certainty.