Jump to content

Connection to Stripe timing out


Recommended Posts

Hi folks,

I'm in the testing phase and I'm struggling to get payment data across to Stripe.

Checking my Stripe dev log, the payment data never reaches them. Here's the entry from my error log:

2019/04/29 23:43:37 [error] 143116#143116: *1767 upstream timed out (110: Connection timed out) while reading response header from upstream, client: [MY LOCAL IP], server: [MY WHMCS HOSTNAME], request: "POST /cart.php?a=checkout HTTP/2.0", upstream: "https://[MY SERVER IP AND PORT]/cart.php?a=checkout", host: "[MY WHMCS HOSTNAME]", referrer: "https://[MY WHMCS HOSTNAME]/cart.php?a=checkout"

I can't seem to find where the bottleneck is occurring. Could someone give me some further debugging advice so I might track this down?

Thanks in advance 🙂

Cheers,
Robert @ dotScot

Link to comment
Share on other sites

  • WHMCS Technical Analyst II
On 4/29/2019 at 10:58 PM, dotScot Domains said:

I worked it out. There was an issue with the mail set up. It wasn't liking the SMTP details for some reason and switching to PHPMail() did the trick.

I am glad to hear that you were able to figure this out. Usually a SMTP caused issue like this is due to either the server's firewall blocking connections to the SMTP server set under Setup > General Settings > Mail tab or an issue with connecting to the SMTP server itself. I'd recommend working on that and get it corrected, as PHPMail() sent e-mails are generally viewed as less trustworthy by recipient mail servers (such as Gmail) and filtered out as spam as a result.

Link to comment
Share on other sites

On 2/05/2019 at 7:04 PM, WHMCS Lawrence said:

I am glad to hear that you were able to figure this out. Usually a SMTP caused issue like this is due to either the server's firewall blocking connections to the SMTP server set under Setup > General Settings > Mail tab or an issue with connecting to the SMTP server itself. I'd recommend working on that and get it corrected, as PHPMail() sent e-mails are generally viewed as less trustworthy by recipient mail servers (such as Gmail) and filtered out as spam as a result.

I got to the bottom of the SMTP issue and we're now using that instead of mail() 🙂

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated