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

Send Email fails with 401 "Missing or invalid x-rh-apitoken"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • aa-latest
    • api, QE
    • False
    • Hide

      None

      Show
      None
    • False
    • Sprint ending Nov 30, 2022

      It only happens on STAGE ENV.

      When trying to send email from this test, we get the following error:

      >           raise ApiException(http_resp=r)
      E           iqe_automation_analytics_api_v1.exceptions.ApiException: (401)
      E           Reason: Unauthorized
      E           HTTP response headers: HTTPHeaderDict({'Server': 'openresty', 'Content-Type': 'application/json', 'Content-Length': '75', 'x-rh-insights-request-id': '74e47eda81744e76986b1ab79a515e7b', 'x-content-type-options': 'nosniff', 'Date': 'Wed, 23 Nov 2022 12:47:21 GMT', 'Connection': 'close', 'Set-Cookie': '8f585a7d113e400d14faa100d81cbdaf=c4a0480a9332c5c54eba112fa3da40ce; path=/; HttpOnly; Secure; SameSite=None', 'x-rh-edge-request-id': 'af2910b', 'x-rh-edge-reference-id': '0.997cd117.1669207641.af2910b', 'x-rh-edge-cache-status': 'Miss from child, Miss from parent', 'X-Frame-Options': 'SAMEORIGIN'})
      E           HTTP response body: b'{"detail":{"name":["{\\"message\\":\\"Missing or invalid x-rh-apitoken.\\"}"]}}'
      iqe_automation_analytics_api_v1/rest.py:230: ApiException
      

              hkataria-insights Harpreet Kataria
              rhn-support-isena Ingrid Sena
              Ingrid Sena Ingrid Sena
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: