At least some of the time, the response can look like:
{'errors': [{'message': 'Parse error on "poopy" (IDENTIFIER) at [1, 1]', 'locations': [{'line': 1, 'column': 1}]}]}
which means the handler code throws with something like:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/.../revup/__main__.py", line 29, in _main
logging.error("{}: {}".format(error["type"], error["message"]))
KeyError: 'type'
Now you'll get something like:
E: Unknown Error: Parse error on "poopy" (IDENTIFIER) at [1, 1]
W: 1 operations failed!
Not sure if some errors still contain type, or if the GitHub GraphQL
API doesn't return that anymore. Either way, handling both cases.
At least some of the time, the response can look like:
which means the handler code throws with something like:
Now you'll get something like:
Not sure if some errors still contain
type
, or if the GitHub GraphQL API doesn't return that anymore. Either way, handling both cases.Reviewers: jerry,brian-k Topic: unknown-error-types