When you set up trace=True and try to launch async call with fetch_result, you'll get the following exception in _jobresult() method:
AttributeError: 'str' object has no attribute 'items'
This is caused by overwriting "headers" variable in _request() method when tracing is enabled.
As a result, headers are passed to _jobresult() as a string.
The solution is to rename headers variable in self.trace ifblock to something else.
When you set up trace=True and try to launch async call with fetch_result, you'll get the following exception in _jobresult() method: AttributeError: 'str' object has no attribute 'items'
This is caused by overwriting "headers" variable in _request() method when tracing is enabled. As a result, headers are passed to _jobresult() as a string. The solution is to rename headers variable in self.trace ifblock to something else.