Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nesies opened this issue Dec 8, 2023 · 1 comment
Open

Comments

@nesies
Copy link

nesies commented Dec 8, 2023

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')
@hoopes
Copy link

hoopes commented Aug 1, 2024

same issue here, with a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants