Skip to main content

Issue

 

I'm using Plsql_Rest_Sender_API.Call_Rest_Endpoint_Json to call rest API service. It works fine for POST and GET, but it does not work for PATCH. I'm getting following error message:

ExecutionException from Sender thread Caused by: ifs.fnd.connect.senders.ConnectSender$TemporaryFailureException: Exception while sending data Caused by: ifs.fnd.base.SystemException: Patch error: 405 (Method Not Allowed)

The same PATCH call works fine from Postman, so there is no issue on receiver side.

Product Version: 22R2SU8

 

 

Resolution

 

Restarting the ifsapp-connect container will the solve the initial issue.

 

Then you might see the below error,

ExecutionException from Sender thread
Caused by: ifs.fnd.connect.senders.ConnectSender$TemporaryFailureException: Exception while sending data
Caused by: ifs.fnd.base.SystemException: Patch error: 201 (Created)

This happens because by default IFS Connect Rest Sender doesn’t accept HTTP Code 201 as a success response. REST Sender by default accept only HTTP Code 200 as a success response.

If your third-party endpoint returns HTTP 201 as a success response, then you have to add it to the ‘Accepted Code’ in REST Sender configuration. After that REST Sender will consider that response code (in your case 201) as a success response. OR else you can set the ‘Accepted codes’ from PL/SQL logic as well. It will apply only for that specific message flow.

More info: rhttps://docs.ifs.com/techdocs/22r2/030_administration/030_integration/300_ifs_connect/010_configure_connect/060_transport_connectors/configure_rest_transport_connector/|https://docs.ifs.com/techdocs/22r2/030_administration/030_integration/300_ifs_connect/010_configure_connect/060_transport_connectors/configure_rest_transport_connector/|smart-link] 

 

Helpful information. Good work @pasana 👌


Reply