HTTPStatusError: Client error '429 Unknown Error' for url 'https://phabricator.services.mozilla.com/api/differential.creatediff'
Open
Nobody has claimed this yet.
hackbot
- Dominant language
- Python
- Stars
- 570
- Forks
- 351
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 65
Description
Sentry Issue: HACKBOT-API-S
HTTPStatusError: Client error '429 Unknown Error' for url 'https://phabricator.services.mozilla.com/api/differential.creatediff'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429
File "app/action_handlers/phabricator_handler.py", line 246, in apply
diff_result = await _conduit_request(
File "app/action_handlers/phabricator_handler.py", line 43, in _conduit_request
return await _client().conduit_request(method, **payload)
File "phabricator_client/client.py", line 115, in conduit_request
data = await self.conduit_call(method, payload)
File "phabricator_client/client.py", line 110, in conduit_call
response.raise_for_status()
File "httpx/_models.py", line 829, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
Failed to submit Phabricator diff for bug 2071583
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with app/action_handlers/phabricator_handler.py at apply and _conduit_request, then follow phabricator_client/client.py through conduit_request and conduit_call. Reproduce or trace the differential.creatediff request and determine the expected handling for the HTTP 429 response; the issue is complete when diff submission no longer fails unexpectedly and the relevant behavior is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100