Uploaded image for project: 'FlightPath'
  1. FlightPath
  2. FLPATH-3371

CMMO raises parsing error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • 0.2.4
    • insights-on-prem
    • None

      When the operator queries GetSourceTypeID, the Koku API returns an unexpected response (not matching SourceTypeResponse), causing:

      failed to parse OpenShift source response from Sources API: invalid character 'd' after top-level value
      

      This error propagates through checkSource → SourceGetOrCreate returns (false, ...) → source_defined stays false.

      Relevant code

      handler.go L367-L431 — SourceGetOrCreate
      handler.go L218-L258 — CheckSourceExists (JSON parse failure)
      handler.go L170-L203 — GetSourceTypeID

              rh-ee-ehendler Elkana Hendler
              rh-ee-ehendler Elkana Hendler
              Thomas Stetson Thomas Stetson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: