Question
Promoting reuse course - HTTP Response code 500 error
Hi,
Exercise: Creating the REST integration interface
when i am trying to process Procy case Rest connector showing below messge during PUT method invocation.
"The HTTP response code of 500 indicated a server error. the response data may contain a reason.// the body of the service's response, which is set up for mapping in the connector rule, was empty for this service call."
Please provide solution if any one come across this issue.
when I run the API standalone by passing the case_key i am getting response.
Thanks for your help in advance
Chandrika
An HTTP 500 error means you are reaching the server but something is erroring out when the server attempts to process the request.
You can trace the "cases/{ID}" api Service.
Someone in the discussion below traced the api Service and noticed that the actionID associated to the PUT named a flow action, pyResolveAndCloseCase, that did not have all of the information needed to complete the task, in particular the work status to use.
A good practice is to simplify, get something to work, create a new version, then take on something more complex. In your situation, try NOT setting the actionID. Does it work?
See: https://community1.pega.com/community/pega-academy/question/rest-error-lsa-exercise-server-responded-http-404-code-indicating