Error “Error while connecting: couldn’t connect to host”

If you get this error when using ShortPixel Image Optimizer on your website, the problem is most likely with your DNS resolver.

Usually the solution is to contact your hosting provider and tell them that http(s)://api.shortpixel.com cannot resolve to its IP address.