mozilla / jira-bugzilla-integration

Jira Bugzilla Integration (JBI) - system to sync bugs and issues
Mozilla Public License 2.0
8 stars 22 forks source link

HTTPError entries in queue do not provide insighful details #969

Closed leplatrem closed 2 months ago

leplatrem commented 2 months ago
    {
        "error": {
            "description": "",
            "details": "Traceback (most recent call last):\n  File \"/app/jbi/runner.py\", line 176, in execute_or_queue\n    return execute_action(request, actions)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/opt/pysetup/.venv/lib/python3.12/site-packages/statsd/client/timer.py\", line 41, in _wrapped\n    return f(*args, **kwargs)\n           ^^^^^^^^^^^^^^^^^^\n  File \"/app/jbi/runner.py\", line 299, in execute_action\n    handled, details = executor(context=action_context)\n                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/jbi/runner.py\", line 124, in __call__\n    result, context = step(context=context, **step_kwargs)\n                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/jbi/steps.py\", line 259, in maybe_update_issue_resolution\n    return _maybe_update_issue_mapped_field(\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/jbi/steps.py\", line 231, in _maybe_update_issue_mapped_field\n    resp = jira_service.update_issue_field(\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/jbi/jira/service.py\", line 268, in update_issue_field\n    response = self.client.update_issue_field(key=issue_key, fields=fields)\n               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/opt/pysetup/.venv/lib/python3.12/site-packages/backoff/_sync.py\", line 105, in retry\n    ret = target(*args, **kwargs)\n          ^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/jbi/common/instrument.py\", line 43, in wrapper\n    return func(*args, **kwargs)\n           ^^^^^^^^^^^^^^^^^^^^^\n  File \"/opt/pysetup/.venv/lib/python3.12/site-packages/atlassian/jira.py\", line 1266, in update_issue_field\n    return self.put(\n           ^^^^^^^^^\n  File \"/opt/pysetup/.venv/lib/python3.12/site-packages/atlassian/rest_client.py\", line 426, in put\n    response = self.request(\n               ^^^^^^^^^^^^^\n  File \"/opt/pysetup/.venv/lib/python3.12/site-packages/atlassian/rest_client.py\", line 312, in request\n    self.raise_for_status(response)\n  File \"/app/jbi/jira/client.py\", line 53, in raise_for_status\n    return super().raise_for_status(*args, **kwargs)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/opt/pysetup/.venv/lib/python3.12/site-packages/atlassian/rest_client.py\", line 549, in raise_for_status\n    raise HTTPError(error_msg, response=response)\nrequests.exceptions.HTTPError\n",
            "type": "HTTPError"
        },
        "identifier": "2024-04-23 21:43:42+00:00-1891718-modify-error",
        "payload": {
            "bug": {
                "component": "Machine Learning",
                "id": 1891718,
                "product": "Core",
                "whiteboard": "[genai]"
            },
            "event": {
                "action": "modify",
                "time": "2024-04-23T21:43:42+00:00"
            }
        }
    }

I saw this coming 😊 https://github.com/mozilla/jira-bugzilla-integration/pull/918#discussion_r1535295334