Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-22133

Application wizard: Get error "UnsupportedMediaType' when create project/applications on Mac

XMLWordPrintable

    • Hide

      1. Login openshift from JBDS installed on Mac OS
      2. Create a new project
      3. Create a new application from local template or server template
      local template: e.g. https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-stibuild.json
      server template: e.g. cakephp-example
      4. Manually trigger build from buildconfig in JBT logical view

      Actual Result:
      2. Operation failed, get error msg:
      Could not create project "xiazhao-jbt": the body of the request was in an unknown format - accepted media types include: application/json, application/yaml
      Could not create resource xiazhao-jbt in namespace '': {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"the body of the request was in an unknown format - accepted media types include: application/json, application/yaml","reason":"UnsupportedMediaType","code":415}

      3. Operation failed, get error msg:
      the body of the request was in an unknown format - accepted media types include: application/json, application/yaml
      Could not create resource ruby-helloworld-sample in namespace 'xiazhao-jbt': {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"the body of the request was in an unknown format - accepted media types include: application/json, application/yaml","reason":"UnsupportedMediaType","code":415}

      4. Operation failed, get error msg:
      Error starting build ruby-sample-build.
      Could not create BuildConfig resource ruby-sample-build in namespace xiazhao2 for subresource instantiate: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"the body of the request was in an unknown format - accepted media types include: application/json, application/yaml","reason":"UnsupportedMediaType","code":415}

      Expected Result:
      step 2,3 should be successful

      Additional info:
      Issue did not repro on Fedora 22 and Windows 10 OS

      Show
      1. Login openshift from JBDS installed on Mac OS 2. Create a new project 3. Create a new application from local template or server template local template: e.g. https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-stibuild.json server template: e.g. cakephp-example 4. Manually trigger build from buildconfig in JBT logical view Actual Result: 2. Operation failed, get error msg: Could not create project "xiazhao-jbt": the body of the request was in an unknown format - accepted media types include: application/json, application/yaml Could not create resource xiazhao-jbt in namespace '': {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"the body of the request was in an unknown format - accepted media types include: application/json, application/yaml","reason":"UnsupportedMediaType","code":415} 3. Operation failed, get error msg: the body of the request was in an unknown format - accepted media types include: application/json, application/yaml Could not create resource ruby-helloworld-sample in namespace 'xiazhao-jbt': {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"the body of the request was in an unknown format - accepted media types include: application/json, application/yaml","reason":"UnsupportedMediaType","code":415} 4. Operation failed, get error msg: Error starting build ruby-sample-build. Could not create BuildConfig resource ruby-sample-build in namespace xiazhao2 for subresource instantiate: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"the body of the request was in an unknown format - accepted media types include: application/json, application/yaml","reason":"UnsupportedMediaType","code":415} Expected Result: step 2,3 should be successful Additional info: Issue did not repro on Fedora 22 and Windows 10 OS

      Get error "UnsupportedMediaType" when create project and applications from JBT on Mac

              jcantril@redhat.com Jeffrey Cantrill
              xiazhao2015 Xia Zhao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: