wp-media / imagify-plugin

Speed up your website with lighter images without losing quality.
https://imagify.io
69 stars 24 forks source link

Improve getaddrinfo Error Message #640

Open joejoe04 opened 2 years ago

joejoe04 commented 2 years ago

Sometimes users get the following error message:

image

I tried searching the imagify-plugin and imagify repos, but found no mention of this error, so I assume it's a message coming from the server. Do we know specifically why these errors happen?

It's definitely not clear to the users from the current error message why the error is happening or what to do about it.

In some cases, this is resolved by having users log out and log back in:

https://secure.helpscout.net/conversation/1346912386/215251 https://secure.helpscout.net/conversation/1341841336/213392

In others, we see users getting cURL error 28's:

https://secure.helpscout.net/conversation/1372646588/224792 https://secure.helpscout.net/conversation/1645552341/297931

Instead, we could offer a more helpful message linking to either Optimization is Stuck or a new page for this specific error. Possibly something like:

image

<strong>A server error occured during optimization: <a href="https://imagify.io/documentation/optimization-is-stuck/" rel="noopener" target="_blank">More info and possible solutions</a></strong>

Though it could be a bit different / more descriptive based on the reason why these errors occur.