mollie-api-php: How to solve time out errors

  • API Version: 2.37.1

Hello! I’m unexpectedly getting time out errors when creating new payments. I’m not getting these errors consistently (maybe 40% of the time?) and haven’t experienced this on similar projects on the same server so I’m having a hard time debugging this.

The error message:

[2021-09-15T15:10:40+0200] Curl error: Resolving timed out after 2516 milliseconds
--
[2021-09-15T15:50:53+0200] Curl error: Resolving timed out after 2512 milliseconds

I did find #470 with an example of how to overwrite the DEFAULT_TIMEOUT but since that is set to 10 seconds and mine times out after 2.5 seconds I don’t think that will resolve my issue. The DEFAULT_CONNECT_TIMEOUT is set to 2 seconds so that doesn’t appear to be it either.

Any advice on how to find out exactly what is timing out and how to resolve that?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (3 by maintainers)

Most upvoted comments

I am as baffled by this as you are… Glad to hear it’s working again, though.

Hi! Thanks for the advice. Just after sending everything over via the contact form it seems I’ve found the issue, I’ve re-issued the SSL certificate and things seem to be working again. Hopefully it keeps working!

It sound like a hiccup at your DNS provider.

DNS issues are hard to trace/debug unless your dns provider has some sharable status monitoring.

I’ll inform the Mollie team to keep a lookout for any known DNS issues, but from Mollie’s side the monitoring shows no issues.

Closing this for now, let me know if it should be reopened.

Hi Sander, thanks for the quick reply!

I’ve been testing with manually setting the DEFAULT_CONNECT_TIMEOUT & DEFAULT_TIMEOUT really low (and really high) but I can’t seem to replicate it at all today which is a bit frustrating. The server is a TransIP VPS hosted in Amsterdam. DNS would make sense but it looks like that’s not easy configurable?