E.g.:
Traceback (most recent call last):
File ...
job.cancel()
File ".../google/cloud/bigquery/job.py", line 378, in cancel
self._set_properties(api_response)
File ".../google/cloud/bigquery/job.py", line 262, in _set_properties
self._scrub_local_properties(cleaned)
File ".../google/cloud/bigquery/job.py", line 1050, in _scrub_local_properties
configuration = cleaned['configuration']['query']
KeyError: 'configuration'
The docs for job.cancel show that the job resource is in a job subkey of the response.
E.g.:
The docs for
job.cancelshow that the job resource is in ajobsubkey of the response.