Follow

HTTP error: 406 Not Acceptable (LiteSpeed)

If you checked your cronjob output and found HTTP status code 406 Not Acceptable, e.g. with output like this

HTTP/1.1 406 Not Acceptable
Cache-Control: private, no-cache, no-store, must-revalidate, max-age=0
Pragma: no-cache
Content-Type: text/html
Content-Length: 1131
Date: Sat, 30 Dec 2017 02:33:04 GMT
Accept-Ranges: bytes
Server: LiteSpeed
Connection: Keep-Alive

<!DOCTYPE html>
<html style="height:100%">
<head><title> 406 Not Acceptable
</title></head>
<body style="color: #444; margin:0;font: normal 14px/20px Arial, Helvetica, sans-serif; height:100%; background-color: #fff;">
<div style="height:auto; min-height:100%; ">     <div style="text-align: center; width:800px; margin-left: -400px; position:absolute; top: 30%; left:50%;">
        <h1 style="margin:0; font-size:150px; line-height:150px; font-weight:bold;">406</h1>
<h2 style="margin-top:20px;font-size: 30px;">Not Acceptable
</h2>
<p>This request is not acceptable</p>
</div></div><div style="color:#f0f0f0; font-size:12px;margin:auto;padding:0px 30px 0px 30px;position:relative;clear:both;height:100px;margin-top:-101px;background-color:#474747;border-top: 1px solid rgba(0,0,0,0.15);box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;">
<br>Proudly powered by  <a style="color:#fff;" href="http://www.litespeedtech.com/error-page">LiteSpeed Web Server</a><p>Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.</p></div></body></html>

To fix this, click Edit cronjob, at the section Send HTTP request, update HTTP headers with this:
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36

If you have Platinum account or higher, just enter
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36
into the User Agent field, then Save changes.

0 Comments

Please sign in to leave a comment.