Loading

All the Mule APIs return an HTTP 501 - Not Implemented error message for specific HTTP methods (PUT/PATCH/DELETE/etc)

Publiceringsdatum: Apr 1, 2025
Lösning

SYMPTOM

All the Mule APIs return an HTTP 501 - Not Implemented error message for specific HTTP methods ( PUT/ PATCH/DELETE/etc) despite having the correct implementation for the respective resources, and there are no failure logs available at the application or DLB level.
 
<HTML>
  <HEAD>
    <TITLE>Unsupported Request</TITLE>
  </HEAD>
  <BODY>
   <H1>Unsupported Request</H1>
   PATCH to http&#58;&#47;&#47;apid not supported.
  </BODY>
</HTML>

When tested locally using the Anypoint Studio, these endpoints work as expected.
 

CAUSE

If your organization has a third-party network device (WAF/Proxy/etc) installed before the MuleSoft load balancer then that network device may block a few HTTP methods by default and return HTTP 501- Not Implemented error message.

The below flow shows the sample path for an application deployed in CloudHub 1.0 with a Dedicated Load Balancer.
API Consumers(Postman) >> Network Device (Proxy/WAF/etc) >> Anypoint Dedicated Load Balancer >> Mule APIs/Applications
 

SOLUTION

Please contact your organization's Network and Infrastructure team and check if any network device is blocking any particular HTTP methods, and if so, kindly allow the methods as per your requirement.

For example, the Akamai WAF does not allow all the HTTP methods by default and the customer needs to allow the respective methods as per the company's policies and requirements.

If following the above step does not resolve the issue or in case there is no third-party network device configured then please contact MuleSoft by raising a support case.
Knowledge-artikelnummer

001121803

 
Laddar
Salesforce Help | Article