btcpayserver / whmcs-plugin

WHMCS plugin for BTCPay
MIT License
22 stars 20 forks source link

Operation timed out after 10001 milliseconds with 0 bytes received #4

Closed Pingblue closed 1 year ago

Pingblue commented 5 years ago

Whenever a customer clicks the "Pay Now" button on the WHMCS invoice this error appears,

[ERROR] In modules/gateways/bitpay/createinvoice.php: Invoice error: 'Operation timed out after 10001 milliseconds with 0 bytes received'

If the back button is clicked and the "Pay Now" button is clicked again there is no issue and the payment page appears.

Anyone else facing this issue with the WHMCS module?

TheOnionHost commented 3 years ago

i am facing same issue did you get an resolution to this ?

Pingblue commented 3 years ago

Late reply but may help someone in the future.

In the bp_lib file increase the timeout value.

Change from this,

curl_setopt($curl, CURLOPT_TIMEOUT, 10);

To this,

curl_setopt($curl, CURLOPT_TIMEOUT, 30);