Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-21652

SDK - Don't Suppress Failed Call Errors

XMLWordPrintable

    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Plat-Ex Sprint 67, Plat-Ex Sprint 68, Plat-Ex Sprint 69

      When a request is not ok, the SDK will just not return anything. It should throw the error back through the promise structure so any `.catch` can handle the result – which is likely a K8s Status object.

      Related code: https://github.com/openshift/dynamic-plugin-sdk/blob/4d06c9c412641ce25e6aff2146593c966e679ced/packages/lib-utils/src/utils/common-fetch.ts#L71

              bflorkie@redhat.com Bryan Florkiewicz
              aballantyne Andrew Ballantyne
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: