Title: WARNING: Image optimization API error: Request exception: Requests_Exception
Last modified: June 4, 2020

---

# WARNING: Image optimization API error: Request exception: Requests_Exception

 *  Resolved [gotosleep](https://wordpress.org/support/users/gotosleep/)
 * (@gotosleep)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/warning-image-optimization-api-error-request-exception-requests_exception/)
 * Hi!
 * First of all, thank you for a great plugin. 😉
 * I’m using it on a few website without problems. On one of these websites, I’m
   getting following error on the PhastPress settings page:
 * “WARNING: Image optimization API error: Request exception: Requests_Exception
   MSG: cURL error 28: Connection timed out after 10000 milliseconds Code: 0”
 * I tried to rollback to previous plugin version and increase PHP max_execution_time,
   but it didn’t work.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-image-optimization-api-error-request-exception-requests_exception%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Albert Peschar](https://wordpress.org/support/users/kiboit/)
 * (@kiboit)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/warning-image-optimization-api-error-request-exception-requests_exception/#post-12939526)
 * Hi [@gotosleep](https://wordpress.org/support/users/gotosleep/),
 * Thanks for trying out PhastPress.
 * There is a connection problem between your server and the PhastPress image optimization
   API. Maybe there’s a firewall on your server that disallows outgoing connections.
 * Perhaps you could ask your hoster or system administrator if there’s a firewall
   that prevents outgoing connections?
 *  Thread Starter [gotosleep](https://wordpress.org/support/users/gotosleep/)
 * (@gotosleep)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/warning-image-optimization-api-error-request-exception-requests_exception/#post-12943205)
 * Could you please send me image optimization API IP address?
 * The server has a strong security solutions and WAF. We will try to add the IP
   address to white-list.
 *  Plugin Author [Albert Peschar](https://wordpress.org/support/users/kiboit/)
 * (@kiboit)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/warning-image-optimization-api-error-request-exception-requests_exception/#post-12943253)
 * Hi [@gotosleep](https://wordpress.org/support/users/gotosleep/),
 * At the moment this is 94.237.89.160. If possible, you can whitelist the hostname`
   optimize.phast.io`. This will prevent issues if the IP address changes in future.
 * –Albert
 *  Thread Starter [gotosleep](https://wordpress.org/support/users/gotosleep/)
 * (@gotosleep)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/warning-image-optimization-api-error-request-exception-requests_exception/#post-12946830)
 * Your server is saved in the database as “Dangerous” because of past bruteforce
   attacks.
 * Those attacks were made from the above mentioned IP address in August 2019.
 * 94.237.89.160 # lfd: (wpbrute) wp-login.php bruteforce 94.237.89.160 (DE/Germany/
   94-237-89-160.de-fra1.upcloud.host): 2 in the last 10800 secs – Thu Aug 15 11:
   22:23 2019
 * Good to know that this IP address is blocked by default by almost all LiteSpeed
   servers that are using WAF.
 *  Plugin Author [Albert Peschar](https://wordpress.org/support/users/kiboit/)
 * (@kiboit)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/warning-image-optimization-api-error-request-exception-requests_exception/#post-12947903)
 * Hi [@gotosleep](https://wordpress.org/support/users/gotosleep/),
 * Thanks for reporting that. We’ve only used this IP address since March 6, 2020,
   so those attacks were from earlier users of the same address. I’d suggest whitelisting
   the IP, if you haven’t done so yet.
 * I’d like to have this IP address removed from the default blacklist, but can’t
   find any information about this blocklist on the internet. If you have information
   about this, please let me know.
 * –Albert

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

The topic ‘WARNING: Image optimization API error: Request exception: Requests_Exception’
is closed to new replies.

 * ![](https://ps.w.org/phastpress/assets/icon-256x256.png?rev=1873505)
 * [PhastPress](https://wordpress.org/plugins/phastpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/phastpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/phastpress/)
 * [Active Topics](https://wordpress.org/support/plugin/phastpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/phastpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/phastpress/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Albert Peschar](https://wordpress.org/support/users/kiboit/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/warning-image-optimization-api-error-request-exception-requests_exception/#post-12947903)
 * Status: resolved