Uploaded image for project: 'Public H2O 3'
  1. Public H2O 3
  2. PUBDEV-3843

Modify R REST API to always return binary data

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.10.1.2
    • Fix Version/s: 3.10.3.1
    • Component/s: None
    • Labels:
      None
    • CustomerVisible:
      No
    • Sprint:
      H2O Sprint 35

      Description

      This JIRA should accomplish the following:
      1.Always return binary data when doing a REST call in R API
      2.Convert raw vector of output from curlPerfom() to character if non-binary payload is desired (default behavior). If MOJOs/genmodel are called upon, then a raw vector is returned
      3.If a HTTP exception is raised (status !=200), then ensure payload is of type character. Otherwise a conversion to JSON cannot happen with a raw vector, which is produced when payload is binary data

      PR: https://github.com/h2oai/h2o-3/pull/659

        Attachments

          Activity

            People

            • Assignee:
              navdeep Navdeep
              Reporter:
              navdeep Navdeep
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: