Uploaded image for project: 'mod-source-record-manager'
  1. mod-source-record-manager
  2. MODSOURMAN-125

Cannot replicate CLI record load using tutorial examples

    XMLWordPrintable

    Details

    • Template:
    • Development Team:
      Folijet

      Description

      After viewing the most recent Sprint review recording, I connected to https://github.com/folio-org/mod-source-record-manager and read through the tutorial on how to use the command line interface for the source record manager. I then copied the curl and json files in the tutorial and tried to run them against https://folio-testing.aws.indexdata.com. I can run the 1st curl command successfully – the one that executes initJobExecutionsRqDto.json and provides the id for the next 2 steps. But when I try to run the 2nd curl command with the sample records as input, I get this error:

      HTTP/1.1 100 Continue

      HTTP/1.1 422 Unprocessable Entity
      Date: Fri, 24 May 2019 20:50:13 GMT
      Content-Type: application/json
      Transfer-Encoding: chunked
      Connection: keep-alive
      X-Okapi-Trace: POST mod-authtoken-2.2.0-SNAPSHOT.45 http://10.36.1.231:9131/change-manager/jobExecutions/502dcead-de57-47e1-99e0-7291aabb9766/records : 202 1074532us
      X-Okapi-Trace: POST mod-source-record-manager-1.4.0-SNAPSHOT.95 http://10.36.1.231:9167/change-manager/jobExecutions/502dcead-de57-47e1-99e0-7291aabb9766/records : 422 3407us

      {"errors":[{"message":"may not be null","type":"1","code":"-1","parameters":[

      {"key":"contentType","value":"null"}

      ]}]}

      Since I copied the curl command directly from the tutorial, I can't see where the error is. My version of the 1st curl command is attached as l_1.curl, 2nd curl command as l_2.curl and the record input as rawRecordsDto.json

        TestRail: Results

          Attachments

          1. l_1.curl
            0.5 kB
          2. l_2.curl
            0.7 kB
          3. rawRecordsDto.json
            5 kB

            Issue Links

              Activity

                People

                Assignee:
                Igor_Gorchakov Igor Gorchakov
                Reporter:
                hismith Anne L. Highsmith
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases