1 Reply Latest reply on Oct 1, 2014 8:44 AM by it2000

    REST API V3 | PUT request is returning 500 code

    gauravg

      Hi,

       

      I want to update Team profile field using REST API V3 and i am sending PUT request on UAT instance. The document which i am referring to is Jive REST Rest API v3.8

       

      Sending 'PUT' request to URL : https://serverurl/api/core/v3/people/2427

      Payload:  "profile" : [ {  "value" : "Test",   "jive_label" : "Team" }]

       

      But in response i am receiving 500 internal server error as below:

       

      java.io.IOException: Server returned HTTP response code: 500 for URL: https://serverurl/api/core/v3/people/2427

          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

          at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

          at java.lang.reflect.Constructor.newInstance(Unknown Source)

          at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)

          at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)

          at java.security.AccessController.doPrivileged(Native Method)

          at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)

          at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

          at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)

          at com.sapient.vox.client.RESTClient.sendPUTRequestToRESTServer(RESTClient.java:264)

          at com.sapient.vox.main.UserReport.main(UserReport.java:17)

      Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: https://serverurl/api/core/v3/people/2427

          at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

          at java.net.HttpURLConnection.getResponseCode(Unknown Source)

          at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)

          at com.sapient.vox.client.RESTClient.sendPUTRequestToRESTServer(RESTClient.java:257)

          ... 1 more

       

      Is there any known defect regarding this? Can you please let me know what can be the issue here?