Skip to main content

WHMCS login to WHM/cPanel: 415 Unsupported Media Type

Comments

8 comments

  • Uptime Web

    We're also seeing this whem WHMCS creates new orders for one of our servers:

    Error: <html> <head><title>415 Unsupported Media Type</title></head> <body> <center><h1>415 Unsupported Media Type</h1></center> <hr><center>openresty/1.27.1.1</center> </body> </html>
    0
  • Namhost

    If you have ImunifAV360 installed, it is the culprit. Specifically, if you've updated to imunify360-firewall - version 8.3.3-1 this starts to happen. All API requests to your WHM server will fail. 

    We have a support ticket #95670289 opened with cPanel and also a ticket, #248976, with ImunifAV360 support regarding this, it has been happening for longer than two days now and it only seems to affect cPanel/WHM servers. All other panels, such as DirectAdmin and so running the latest IAV360 versions work well. 

    So yeah, just an FYI. 

    1
  • Jade B

    We resolved the same issue by adding our whmcs server IP address to the Imunifi 360 whitelist

    0
  • Namhost

    Imunyfy support:

    Our developers are aware of this issue and are working on the solution. 
     
    This is related to some changes for this feature: "panel_protection" - after this new update, all requests to WHM`s ports now redirect to Webshield for SplashScreen checks (before only 2083 and 2082 ports were redirected), and this causes some errors in API requests.
     
    Till the solution is found, and as a temporary workaround, I'd like to suggest disabling this feature:
     
    ```
    imunify360-agent config update '{"WEBSHIELD": {"panel_protection": false}}'
     ```

    1
  • dooh

    Easy fix with whitelist from CLI:

    imunify360-agent ip-list local add --purpose white ip_of_whmcs
    0
  • MindServer

    Namhost Thank you very much for the information.

    Please, write us when Imunify360 support update you with solution.

    Other question cPRex: this are updated?, they are all safe service?: https://support.cpanel.net/hc/en-us/community/posts/19389562586519-System-Adminstration-Services

    Thank you again!

    0
  • Namhost

    Here's another update:

    We have received a final report on this issue from our developers, as it has affected the WHM ports and related services to some extent, and we would like to provide more details for a better understanding.

    ---
    This specific issue seems to be connected to the recently released in ids-8.3.3 extension of the panel_protection feature to ports 2086/2087.
    It may come in different flavours.
    Here is a list of the most possible ones:
    -415 errors;
    -400 errors;
    -SSL certificate issue;
    But it all comes down to starting proxying their automated requests via webshield.
    In this regard, we can suggest the following solution:
     
    -Disabling the panel_protection feature completely removes the issue.
    -Whitelisting request source IP removes 415 error issue (because after whitelisting request source IP splashscreen isn't supposed be shown).
     
    Error 400 might be connected to unexpected HTTP request schema (when server expects request starting with HTTPS to its TLS ports, but gets HTTP instead (cpanel might do redirections, but when webshield enters into game, it doesn't aware of it -- so when you do request to webshield TSL port with HTTP schema, you would get 400 error).

    Could you please whitelist source IP and ignore ssl certificate issue from your API calls? 
    ---


    1
  • cPRex Jurassic Moderator

    Nice collaboration, everyone!

    0

Please sign in to leave a comment.