Title: Makes WordPress to timeout 504
Last modified: September 19, 2023

---

# Makes WordPress to timeout 504

 *  Resolved [bunower](https://wordpress.org/support/users/bunower/)
 * (@bunower)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/makes-wordpress-to-timeout-504/)
 * Since couple of days i have problems with this plugin.
   It makes the Checkout 
   page and the Backend like status page and payment settings page extreme slow.
   I had to set nginx fpm time out to 10 minutes. And in the same ime i also get
   info **Authentication with PayPal failed: token could not be created.**
 * i wanted to check what settings cause the problem but i cant enter that page 
   because i am getting constantly 504 timeout after 10 minutes.
   Before everything
   was okay and running well.
 * Running on 4GB Ram
   Php 8.1nginxSeems like this request timing out. And i tries
   45 time to connection.This is weird, because i didt not changed anything here.
 *     ```wp-block-code
       POST	https://api.paypal.com/v1/oauth2/token
       ?grant_type=client_credentials	cURL error 28: Connection timeout after 10001 ms	
   
           WooCommerce\P\A\A\PayPalBearer->request()
   
       	Plugin: woocommerce-paypal-payments		10,0039
       ```
   
    -  This topic was modified 2 years, 10 months ago by [bunower](https://wordpress.org/support/users/bunower/).
    -  This topic was modified 2 years, 10 months ago by [bunower](https://wordpress.org/support/users/bunower/).

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

 *  Thread Starter [bunower](https://wordpress.org/support/users/bunower/)
 * (@bunower)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/makes-wordpress-to-timeout-504/#post-17062820)
 * Additional informations i found out.
   I simply was able to disconnect the account,
   and the page was loading well. After reconnect or trying to reconnect the account
   it was not working anymore. Somehow it cant connect to paypal and then it is 
   it hast the above mentioned problem. even through the wizard
 *  Plugin Support [Syde Joost](https://wordpress.org/support/users/joostvandevijver/)
 * (@joostvandevijver)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/makes-wordpress-to-timeout-504/#post-17065307)
 * Hello,
 * Thank you for reaching out to us, we are here to help.
 * The issue you are reporting seems to be a mix of incorrect account details being
   used (can be corrected by onboarding the plugin again using the wizard) and hosting
   related issues. Please take a look [here](https://www.wpbeginner.com/wp-tutorials/how-to-fix-curl-error-28-connection-timed-out-after-x-milliseconds/)
   for the cURL error 28 situation and see if you can get this resolved following
   those instructions.
 * This issue is not a common error, so we do believe this is a local issue with
   your site; not a general issue with our plugin. Please let me know if this helped
   you further or if you have any more questions.
 * Kind regards,
   Joost
 *  Plugin Support [Syde Joost](https://wordpress.org/support/users/joostvandevijver/)
 * (@joostvandevijver)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/makes-wordpress-to-timeout-504/#post-17065337)
 * Hello [@bunower](https://wordpress.org/support/users/bunower/)
 * One addition to my response: we have a feature request open to handle bad site
   performance when API credentials are invalid or plugin is unable to obtain the
   token from PayPal. We hope we can improve this in a future update because currently
   the user experience leaves room for improvement when the plugin was unable to
   connect to PayPal for the token.
 * However, we do not expect the cause for the problem you are experiencing is anything
   else than hosting performance/issues and the account details to be not correct
   within the plugin.
 * Kind regards,
   Joost
 *  Thread Starter [bunower](https://wordpress.org/support/users/bunower/)
 * (@bunower)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/makes-wordpress-to-timeout-504/#post-17067739)
 * So as figured out the Problem is in the plugin itself, after digging into it,
   paypal said the Paypal api url is NOT [https://api.paypal.com](https://api.paypal.com).
   Instead i should try this URL `[https://api-m.paypal.com](https://api-m.paypal.com/)`.
   
   After changing the url in plugin, it worked fine.
 *  Plugin Support [Syde Joost](https://wordpress.org/support/users/joostvandevijver/)
 * (@joostvandevijver)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/makes-wordpress-to-timeout-504/#post-17068149)
 * Hello [@bunower](https://wordpress.org/support/users/bunower/)
 * thank you for letting us know how you got this resolved. We will discuss this
   further with PayPal and see if we require changes from the plugin side or if 
   PayPal needs to make adjustments to correct this.
 * Kind regards,
   Joost

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

The topic ‘Makes WordPress to timeout 504’ is closed to new replies.

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

 * 5 replies
 * 2 participants
 * Last reply from: [Syde Joost](https://wordpress.org/support/users/joostvandevijver/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/makes-wordpress-to-timeout-504/#post-17068149)
 * Status: resolved