pycamunda
pycamunda copied to clipboard
externaltask with error, failed to query /errorDetails, missing auth
pycamunda/externaltask.py
if self.request_error_details:
for external_task in external_tasks:
if external_task.error_details is None:
try:
response = requests.get(self.url + f'/{external_task.id_}/errorDetails')
except requests.exceptions.RequestException:
raise pycamunda.PyCamundaException()
if not response:
pycamunda.base._raise_for_status(response)
external_task.error_details = response.text
replace:
response = requests.get(self.url + f'/{external_task.id_}/errorDetails')
with
response = self.session.get(self.url + f'/{external_task.id_}/errorDetails')