Error posting to API: cURL error 6: name lookup timed out

I'm getting an error that says "Error posting to API: cURL error 6: name lookup timed out" when trying to Smush images.