REST delete request fails on server redirection
The HTTP response code of 301 indicates a server redirection which is not supported for HTTP connectors using the Delete method. The body of the service's response, which is set up for mapping in the Connector rule, is empty for this service call.
A REST delete request fails with errors in logs.
The property pyTempDataPage.response_POST.employee was of mode String while com.pegarules.data.internal.ClipboardPropertyStrMinFeatureImpl.getPageValue(int) was expecting Page List mode. Details: (none)
Steps to Reproduce
Send a REST delete request.
When capturing the traffic, the request is made to /path/to/resource , while the redirect is to /path/to/resource (note the trailing forward slash). The delete request fails as Pega does not support redirects in REST.
Perform the following local-change:
Change the REST delete request to /path/to/resource/ (include the trailing forward slash).
0% found this useful