• Resolved yobofofas

    (@yobofofas)


    I’m seeing cURL 28 and Missing Header/body separator errors on a host with no firewall and no security plugins. I tried disabling all plugins and got the same result. Tried a different version of the plugin (3.2.3) and got the same result. It’s either a cURL 28 error or:

    “Missing header/body separator
    There was an error connecting to the image compression server. This could mean either the server is temporarily unavailable or there are connectivity issues with your internet connection. Please try later.”

    The logs all have the same thing in common:

    Cannot establish connection with reSmush.it webservice. Please try later

    Complete log below:

    2022-07-12 00:56:55 : INFO] - Re_Smush_It_Task with attachment ID : 50599, autocreated on : July 12, 2022 12:56:55 
    [2022-07-12 01:02:14 : INFO] - 
     
    [2022-07-12 01:02:14 : INFO] - Header for logs at time:  Tue, 12 Jul 2022 01:02:14 +0000 on https://twoheadednerd.com 
    [2022-07-12 01:02:14 : INFO] - WP: 6.0 
    [2022-07-12 01:02:14 : INFO] - PHP: 7.4.30 (fpm-fcgi, Linux wordpress 5.10.109+ #1 SMP Sun Apr 24 09:09:13 UTC 2022 x86_64) 
    [2022-07-12 01:02:14 : INFO] - MySQL: 5.7.37 
    [2022-07-12 01:02:14 : INFO] - WPLANG: en_US 
    [2022-07-12 01:02:14 : INFO] - Server: Flywheel/5.1.0 
    [2022-07-12 01:02:14 : INFO] - Outbound connections: N 
    [2022-07-12 01:02:14 : INFO] - safe_mode: 0 
    [2022-07-12 01:02:14 : INFO] - max_execution_time: 180 
    [2022-07-12 01:02:14 : INFO] - memory_limit: 256M (used: 8.3M | 2M) 
    [2022-07-12 01:02:14 : INFO] - multisite: N 
    [2022-07-12 01:02:14 : INFO] - openssl: OpenSSL 1.1.1f  31 Mar 2020 
    [2022-07-12 01:02:14 : INFO] - A total of 1 tasks of type smush found and will be processed in this iteration 
    [2022-07-12 01:02:14 : DEBUG] - Lock option (updraft_lock_smush, wp_gsy9mjrlj0_options) was created in the database 
    [2022-07-12 01:02:14 : INFO] - Lock (updraft_lock_smush, wp_gsy9mjrlj0_options) acquired after initialising the database 
    [2022-07-12 01:02:14 : INFO] - Processing task with ID : 3414, and type 'smush' 
    [2022-07-12 01:02:14 : INFO] - Re_Smush_It_Task with attachment ID : 50599, autocreated on : July 12, 2022 12:56:55 
    [2022-07-12 01:02:15 : INFO] - 60 
    [2022-07-12 01:02:16 : INFO] - Task with ID 3414 and type (smush) failed with error code http_request_failed - Missing header/body separator 
    [2022-07-12 01:02:16 : INFO] - Cannot establish connection with reSmush.it webservice. Please try later 
    [2022-07-12 01:02:16 : INFO] - Re_Smush_It_Task with attachment ID : 50599, autocreated on : July 12, 2022 12:56:55 
    [2022-07-12 01:02:20 : INFO] - 60 
    [2022-07-12 01:02:42 : INFO] - Task with ID 3414 and type (smush) failed with error code invalid_response - The compression apparently succeeded, but WP-Optimize could not retrieve the compressed image from the remote server. 
    [2022-07-12 01:02:42 : INFO] - data: {"src":"http:\/\/par3.static.resmush.it\/4d1343a4dad92c361b5f57b414056c00\/_src_ThorLnT-300x300.jpg","dest":"http:\/\/par3.static.resmush.it\/4d1343a4dad92c361b5f57b414056c00\/ThorLnT-300x300.jpg","src_size":54595,"dest_size":22299,"percent":59,"output":"json","expires":"Tue, 12 Jul 2022 03:07:37 +0200","generator":"reSmush.it rev.3.0.4.20210124"} 
    [2022-07-12 01:02:42 : INFO] - Re_Smush_It_Task with attachment ID : 50599, autocreated on : July 12, 2022 12:56:55 
    [2022-07-12 01:02:42 : INFO] - 60 
    [2022-07-12 01:02:58 : INFO] - Task with ID 3414 and type (smush) failed with error code invalid_response - The compression apparently succeeded, but WP-Optimize could not retrieve the compressed image from the remote server. 
    [2022-07-12 01:02:58 : INFO] - data: {"src":"http:\/\/par3.static.resmush.it\/0281e1e8af051f7e0d8e407f6b599fb8\/_src_ThorLnT-150x150.jpg","dest":"http:\/\/par3.static.resmush.it\/0281e1e8af051f7e0d8e407f6b599fb8\/ThorLnT-150x150.jpg","src_size":17027,"dest_size":7357,"percent":57,"output":"json","expires":"Tue, 12 Jul 2022 03:07:57 +0200","generator":"reSmush.it rev.3.0.4.20210124"} 
    [2022-07-12 01:02:58 : INFO] - Re_Smush_It_Task with attachment ID : 50599, autocreated on : July 12, 2022 12:56:55 
    [2022-07-12 01:03:00 : INFO] - 60 
    [2022-07-12 01:03:31 : INFO] - Task with ID 3414 and type (smush) failed with error code http_request_failed - cURL error 28: Operation timed out after 30001 milliseconds with 0 bytes received 
    [2022-07-12 01:03:31 : INFO] - Cannot establish connection with reSmush.it webservice. Please try later 
    [2022-07-12 01:03:31 : INFO] - Re_Smush_It_Task with attachment ID : 50599, autocreated on : July 12, 2022 12:56:55 
    [2022-07-12 01:03:32 : INFO] - 60 
    [2022-07-12 01:03:44 : INFO] - Task with ID 3414 and type (smush) failed with error code invalid_response - The compression apparently succeeded, but WP-Optimize could not retrieve the compressed image from the remote server. 
    [2022-07-12 01:03:44 : INFO] - data: {"src":"http:\/\/par3.static.resmush.it\/8f578d9620b74d1d0e0e328b1763ab0c\/_src_ThorLnT-400x284.jpg","dest":"http:\/\/par3.static.resmush.it\/8f578d9620b74d1d0e0e328b1763ab0c\/ThorLnT-400x284.jpg","src_size":69273,"dest_size":29129,"percent":58,"output":"json","expires":"Tue, 12 Jul 2022 03:08:43 +0200","generator":"reSmush.it rev.3.0.4.20210124"} 
    [2022-07-12 01:03:44 : INFO] - Re_Smush_It_Task with attachment ID : 50599, autocreated on : July 12, 2022 12:56:55 
    [2022-07-12 01:03:46 : INFO] - 60 
    [2022-07-12 01:04:06 : INFO] - Task with ID 3414 and type (smush) failed with error code invalid_response - The compression apparently succeeded, but WP-Optimize could not retrieve the compressed image from the remote server. 
    [2022-07-12 01:04:06 : INFO] - data: {"src":"http:\/\/par2.static.resmush.it\/648040e4990e4d7b7a64d29b6abf5390\/_src_ThorLnT-400x376.jpg","dest":"http:\/\/par2.static.resmush.it\/648040e4990e4d7b7a64d29b6abf5390\/ThorLnT-400x376.jpg","src_size":89951,"dest_size":37276,"percent":59,"output":"json","expires":"Tue, 12 Jul 2022 03:09:02 +0200","generator":"reSmush.it rev.3.0.4.20210124"} 
    [2022-07-12 01:04:07 : INFO] - Re_Smush_It_Task with attachment ID : 50599, autocreated on : July 12, 2022 12:56:55 
    [2022-07-12 01:04:07 : INFO] - 60 
    [2022-07-12 01:04:07 : INFO] - Task with ID 3414 and type (smush) failed with error code http_request_failed - Missing header/body separator 
    [2022-07-12 01:04:07 : INFO] - Cannot establish connection with reSmush.it webservice. Please try later 
    [2022-07-12 01:04:07 : INFO] - Lock option (updraft_lock_smush, wp_gsy9mjrlj0_options) released 
    [2022-07-12 01:04:07 : INFO] - Successfully processed the queue (smush). 1 tasks were processed out of 1. 
    [2022-07-12 01:04:07 : INFO] - Lock option (updraft_lock_smush, wp_gsy9mjrlj0_options) was deleted from the database 
    [2022-07-12 01:04:07 : INFO] - Cleaning up tasks of type (smush). A total of 1 tasks will be deleted. 
    [2022-07-12 01:12:59 : INFO] - 
     
    [2022-07-12 01:12:59 : INFO] - Header for logs at time:  Tue, 12 Jul 2022 01:12:59 +0000 on https://twoheadednerd.com 
    [2022-07-12 01:12:59 : INFO] - WP: 6.0 
    [2022-07-12 01:12:59 : INFO] - PHP: 7.4.30 (fpm-fcgi, Linux wordpress 5.10.109+ #1 SMP Sun Apr 24 09:09:13 UTC 2022 x86_64) 
    [2022-07-12 01:12:59 : INFO] - MySQL: 5.7.37 
    [2022-07-12 01:12:59 : INFO] - WPLANG: en_US 
    [2022-07-12 01:12:59 : INFO] - Server: Flywheel/5.1.0 
    [2022-07-12 01:12:59 : INFO] - Outbound connections: N 
    [2022-07-12 01:12:59 : INFO] - safe_mode: 0 
    [2022-07-12 01:12:59 : INFO] - max_execution_time: 180 
    [2022-07-12 01:12:59 : INFO] - memory_limit: 256M (used: 8.3M | 2M) 
    [2022-07-12 01:12:59 : INFO] - multisite: N 
    [2022-07-12 01:12:59 : INFO] - openssl: OpenSSL 1.1.1f  31 Mar 2020 
    [2022-07-12 01:12:59 : INFO] - The queue for tasks of type "smush" is empty. Aborting! 
    [2022-07-12 16:54:18 : INFO] - cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received 
    [2022-07-12 16:54:18 : INFO] - Re_Smush_It_Task server status: Offline 
    [2022-07-12 16:54:48 : INFO] - cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received 
    [2022-07-12 16:54:48 : INFO] - Re_Smush_It_Task server status: Offline 
    [2022-07-12 17:07:19 : INFO] - cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received 
    [2022-07-12 17:07:19 : INFO] - Re_Smush_It_Task server status: Offline 
    [2022-07-12 17:09:48 : INFO] - cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received 
    [2022-07-12 17:09:48 : INFO] - Re_Smush_It_Task server status: Offline 
    [2022-07-12 17:10:20 : INFO] - Missing header/body separator 
    [2022-07-12 17:10:20 : INFO] - Re_Smush_It_Task server status: Offline 
    [2022-07-12 17:11:04 : INFO] - Missing header/body separator 
    [2022-07-12 17:11:04 : INFO] - Re_Smush_It_Task server status: Offline 
    [2022-07-12 17:11:32 : INFO] - Missing header/body separator 
    [2022-07-12 17:11:32 : INFO] - Re_Smush_It_Task server status: Offline 
    [2022-07-12 17:32:34 : INFO] - cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received
Viewing 3 replies - 1 through 3 (of 3 total)
  • @yobofofas The curl 28 error usually occurs if your website is blocking the request to third party API, please check with your host if your website is behind firewall, if yes please temporary disable the firewall and check if the image compression works?

    Thread Starter yobofofas

    (@yobofofas)

    Hey Harshad,
    I can 100% confirm my host is not using a firewall and there is nothing on the website that is blocking the AP!. I sent you logs showing that there was no response?from the smushit server.

    I can confirm this because I work as a Sales Engineer for Flywheel, the company that hosts this site. I can walk you thru the entire tech stack of our server setup if you like. There is no firewall or plugin blocking the API. I have tried disabling all plugins except for WP Optimize and still, there was no connection to the smushit?server. Please look at the logs I sent.

    @yobofofas Our development team is looking into the issue.

    Once the issue is fixed, we will update you on the same.

    Thank you for your time and patience.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘cUrl 28 and Missing header/body separator errors’ is closed to new replies.