pycamunda icon indicating copy to clipboard operation
pycamunda copied to clipboard

externaltask with error, failed to query /errorDetails, missing auth

Open nesies opened this issue 1 year ago • 1 comments

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')

nesies avatar Dec 08 '23 10:12 nesies