IBM Support

webMethods Knowlegebase : Error when sending a PATCH request to a resource. (1800113)

Troubleshooting


Problem

When sending a PATCH request to a resource, the following error is returned:

{

"error": "mediation_error",

"error_description": "Input request HTTP method is PATCH but operation /aaaaaa/bbbbbb/cccccc/dddddd accepts only: [GET] at time:10:37:48 AM on date:Sep 18, 2019. The client ip was:NNN.NNN.NNN.NNN. The current user:Default. The consumer application:test_newman_api"

}

However, the operation is defined properly with GET and PATCH methods.

In the “server.log” (trace log level) it is reported:

(IS) [MED.0050.0245] 2019-09-19 10:03:22 CEST TRACE: Input request HTTP method is Input request HTTP method is PATCH but operation /aaaaaa/bbbbbb/cccccc/dddddd accepts only: [GET] but operation {1} accepts only: {2}

(IS) [MED.0050.0245] 2019-09-19 10:03:22 CEST TRACE: com.softwareag.pg.exceptions.PGException: Input request HTTP method is PATCH but operation /aaaaaa/bbbbbb/cccccc/dddddd accepts only: [GET]

at com.softwareag.pg.mediators.RestResourceFilterMediator.mediate(RestResourceFilterMediator.java:93)

at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)

at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114)

at com.softwareag.pg.axisfree.MediatorHttpHandler.mediateService(MediatorHttpHandler.java:365)

....

at java.lang.Thread.run(Thread.java:748)

com.softwareag.pg.exceptions.PGException: Input request HTTP method is PATCH but operation /aaaaaa/bbbbbb/cccccc/dddddd accepts only: [GET]

at com.softwareag.pg.mediators.RestResourceFilterMediator.mediate(RestResourceFilterMediator.java:93)

at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)

at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114)

at com.softwareag.pg.axisfree.MediatorHttpHandler.mediateService(MediatorHttpHandler.java:365)

....

at java.lang.Thread.run(Thread.java:748)

(IS) [MED.0050.0202] 2019-09-19 10:03:22 CEST TRACE: Mediator fault handler processing exception for service: MyAPIv1(1.0), Message: Input request HTTP method is PATCH but operation /aaaaaa/bbbbbb/cccccc/dddddd accepts only: [GET], StackTrace: com.softwareag.pg.exceptions.PGException: Input request HTTP method is PATCH but operation /aaaaaa/bbbbbb/cccccc/dddddd accepts only: [GET]

at com.softwareag.pg.mediators.RestResourceFilterMediator.mediate(RestResourceFilterMediator.java:93)

at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)

at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114)

at com.softwareag.pg.axisfree.MediatorHttpHandler.mediateService(MediatorHttpHandler.java:365)

....

at java.lang.Thread.run(Thread.java:748)

Document Location

Worldwide

[{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSQKXP","label":"IBM webMethods API Management"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Mediator (formerly X-Broker) (SMG)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Red Hat Enterprise Linux"}],"Version":"9.12"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
20 March 2025

UID

ibm17196756