You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For hooks on_postload_global_task_{create,update}, the GlobalTasks class refers to a case object which does not exist.
[2023-03-27 21:14:05,712: INFO/ForkPoolWorker-2] Retrieved server configuration
[2023-03-27 21:14:05,718: INFO/ForkPoolWorker-2] Module has initiated
[2023-03-27 21:14:05,718: INFO/ForkPoolWorker-2] Received on_postload_global_task_create
[2023-03-27 21:14:05,718: INFO/ForkPoolWorker-2] Received on_postload_global_task_create, None
[2023-03-27 21:14:05,718: INFO/ForkPoolWorker-2] Retrieved server configuration
[2023-03-27 21:14:05,731: CRITICAL/ForkPoolWorker-2] Failed to run hook on_postload_global_task_create with module iris_webhooks_module. Error 'GlobalTasks' object has no attribute 'case'
[2023-03-27 21:14:05,731: ERROR/ForkPoolWorker-2] 'GlobalTasks' object has no attribute 'case'
Traceback (most recent call last):
File "/iriswebapp/app/iris_engine/module_handler/module_handler.py", line 480, in task_hook_wrapper
task_status = mod_inst.hooks_handler(hook_name, hook_ui_name, data=_obj)
File "/opt/venv/lib/python3.9/site-packages/iris_webhooks_module/IrisWebHooksInterface.py", line 139, in hooks_handler
status = self._handle_hook(hook_name, hook_ui_name, data=data)
File "/opt/venv/lib/python3.9/site-packages/iris_webhooks_module/IrisWebHooksInterface.py", line 197, in _handle_hook
self._do_web_hook(hook_name, data, hook, server_url)
File "/opt/venv/lib/python3.9/site-packages/iris_webhooks_module/IrisWebHooksInterface.py", line 266, in _do_web_hook
case_name = data[0].case.name
AttributeError: 'GlobalTasks' object has no attribute 'case'
PR incoming 😃
The text was updated successfully, but these errors were encountered:
For hooks
on_postload_global_task_{create,update}
, the GlobalTasks class refers to acase
object which does not exist.PR incoming 😃
The text was updated successfully, but these errors were encountered: