Closed sgoggins closed 1 week ago
exception is being thrown in augur/tasks/github/util/github_data_access.py
here:
def make_request(self, url, method="GET", timeout=100):
with httpx.Client() as client:
response = client.request(method=method, url=url, auth=self.key_manager, timeout=timeout, follow_redirects=True)
if response.status_code in [403, 429]:
raise RatelimitException(response)
if response.status_code == 404:
raise UrlNotFoundException(f"Could not find {url}")
response.raise_for_status()
return response
I know we want this to be a somewhat generic function, but this particular issue has a specific meaning with regards to messages, so I think we might need to consider evaluating the result less generically.
When there are no messages associated with an issue or pull request, which is quite rare, we need to keep going, perhaps throw a warning, and continue. Here is an example error response:
I have verified in these cases there are, in fact, no messages, and the API returns: