I am writing this blog post as Claude Code is working on
upsint, a tool we worked on many years
back. I haven’t touched upsint’s codebase for some time. It worked just fine
all those years but recently I started getting 401 and 403 while creating pull
requests, probably due to my API token expiring. I have never implemented any
serious error handling in the tool so it was hard to diagnose the issue
quickly:
requests.exceptions.RetryError: HTTPSConnectionPool(host='api.github.com',
port=443): Max retries exceeded with url: /repos/packit/ai-workflows/pulls
(Caused by ResponseError('too many 403 error responses'))
…
Keep reading