Uploaded image for project: 'Automation Analytics'
  1. Automation Analytics
  2. AA-946

PDF generator should throw an error when incorrect parameters are sent, instead of 500 internal server error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • api
    • None
    • False
    • False
    • Sprint ending Jan 25, 2022, Sprint ending Feb 23, 2022, Sprint ending March 23, 2022, Sprint ending April 20, 2022, Sprint ending May 18, 2022

      generate pdf endpoint returns 500 internal server error when receiving wrong params schema. I suspect this also crashes the generate pdf pod .

      To reproduce the issue you can use the below body message:

      body = {
      "endpointUrl": "/api/tower-analytics/v1/host_explorer/",
      "queryParams":

      { "attributes": ["total_unique_host_count", "total_unique_host_changed_count"], "cluster_id": [], "granularity": "monthly", "group_by": "template", "group_by_time": True, "inventory_id": [], "job_type": [], "limit": "6", "offset": "18", "org_id": [], "quick_date_range": "last_6_months", "sort_options": "total_unique_host_count", "sort_order": "desc", "status": [], "template_id": [], }

      ,
      "show_extra_rows": True,
      }

              znemecko Zita Nemeckova
              hkataria-insights Harpreet Kataria
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: