`requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url: https://api.github.com/...`
IntermediateTroubleshootingboto3, HTTP & API errors
Answer
Likely causes → You exceeded the rate limit (GitHub: 5,000 requests/hour per token for REST, plus secondary limits on concurrency and content creation).
Diagnose →
print(resp.headers.get("Retry-After"), resp.headers.get("X-RateLimit-Remaining"), resp.headers.get("X-RateLimit-Reset"))
Fix → Honour Retry-After / wait until X-RateLimit-Reset; use Retry(status_forcelist=[429], respect_retry_after_header=True); reduce concurrency; use conditional requests (ETag) and GraphQL to cut call volume; use a GitHub App token for higher limits.
Prevent → Track remaining quota and slow down proactively.
More on boto3, HTTP & API errors
`botocore.exceptions.NoCredentialsError: Unable to locate credentials`Beginner`botocore.exceptions.NoRegionError: You must specify a region.` even though `AWS_REGION` is set.Intermediate`botocore.exceptions.ClientError: An error occurred (UnauthorizedOperation) when calling the DescribeInstances operation: You are not authorized to perform this operation.`Beginner`An error occurred (ExpiredToken) when calling the ... operation: The security token included in the request is expired` midway through a long job.Advanced`An error occurred (RequestLimitExceeded) when calling the DescribeInstances operation (reached max retries: 4): Request limit exceeded.`Intermediate`An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid.`Beginner