Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-3505

SDC be API returns HTTP 200 response code on error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • London Release
    • Guilin Release
    • None
    • None

      I uploaded empty package file to VSP using Python ONAP SDK and got 200 response with error in body.

      2021-03-11 10:37:24,793 DEBUG 433:connectionpool.py(19971) - https://sdc.api.fe.simpledemo.onap.org:30207 "POST /sdc1/feProxy/onboarding-api/v1.0/vendor-software-products/00eddd18413e48b5a681131b2eea5693/versions/c63823413398437e9c71cd14b4036954/orchestration-template-candidate HTTP/1.1" 200 167

      2021-03-11 10:37:24,795 INFO 116:onap_service.py(19971) - [SDC][upload ZIP for Vsp] response code: 200

      2021-03-11 10:37:24,796 DEBUG 120:onap_service.py(19971) - [SDC][upload ZIP for Vsp] response: {"errors":{"uploadFile":[

      {"level":"ERROR","message":"Zip file should not contain folders"}

      ]},"status":"Failure","onboardingOrigin":"zip","networkPackageName":"lalala"}

            vasraz vasraz
            michaljagiellotmpl michaljagiellotmpl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: