I’m getting a cURL error 52 when trying to run Smush Pro

I recently installed WP Smush Pro on my site and for some reason the plugin is not working properly. I’m getting this error:
Error posting to API: cURL error 52: Empty reply from server.