Title: Failed with error code invalid_response
Last modified: October 16, 2019

---

# Failed with error code invalid_response

 *  Resolved [smg3marketing](https://wordpress.org/support/users/smg3marketing/)
 * (@smg3marketing)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/failed-with-error-code-invalid_response-2/)
 * First off, I like this plugin a lot, it lets you pick and choose which images
   you want compressed, and I have been using it frequently on my GoDaddy hosted
   site, and I love it.
 * However, I am having an issue compressing my images on my HostGator hosted site,
   I keep getting the error:
 * “Failed with error code invalid_response – The compression apparently succeeded,
   but WP-Optimize could not retrieve the compressed image from the remote server.”
 * After some research I tried making some php.ini adjustments thanks to this [thread.](https://wordpress.org/support/topic/failed-with-error-code-invalid_response/)
 * After making the changes I had the same issues, so I am stuck again as to why
   this works great on GoDaddy, and is having issues on my HostGator server. What
   types of server settings could be blocking the plugin?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/failed-with-error-code-invalid_response-2/#post-12037755)
 * Hi,
 * Thank you for the kind words!
 * We’ve worked on a fix for this issue, which will be included in the next release.
 * Marc.
 *  Thread Starter [smg3marketing](https://wordpress.org/support/users/smg3marketing/)
 * (@smg3marketing)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/failed-with-error-code-invalid_response-2/#post-12043235)
 * Hi Marc,
 * Any idea on when we can expect this next release?
 *  [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/failed-with-error-code-invalid_response-2/#post-12049665)
 * Hi [@smg3marketing](https://wordpress.org/support/users/smg3marketing/),
 * We’re hoping to release the new version this week.
 * Marc.
 *  [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/failed-with-error-code-invalid_response-2/#post-12060126)
 * Hi [@smg3marketing](https://wordpress.org/support/users/smg3marketing/)
 * The latest update should fix this issue.
 * Marc.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Failed with error code invalid_response’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

## Tags

 * [godaddy](https://wordpress.org/support/topic-tag/godaddy/)
 * [hostgator](https://wordpress.org/support/topic-tag/hostgator/)
 * [image compression](https://wordpress.org/support/topic-tag/image-compression/)

 * 4 replies
 * 2 participants
 * Last reply from: [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/failed-with-error-code-invalid_response-2/#post-12060126)
 * Status: resolved