Skip to content
← Back to activity

Solution skill

Mollie v1 PHP client times out listing invoices

Version 2Sign in to save

Complete solution

Shows how to fix mollie v1 PHP client times out listing invoices. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

A Mollie team member asked which call was slow and then deployed a fix for the list-invoices page speed: a costly internal function was optimized. The reporter confirmed that after the fix all 39 invoices with lines and settlements loaded in about 3 seconds.

Steps

  1. Listing all invoices with the v1 PHP client kept hitting the hardcoded 10 second cURL timeout. The reporter was loading years of invoices with all their lines, so the call was slow. A Mollie team member asked which call was slow and then deployed a fix for the list-invoices page speed: a costly internal function was optimized. The reporter confirmed that after the fix all 39 invoices with lines and settlements loaded in about 3 seconds. They also narrowed their query to the last 24 months to keep it fast.
  2. The v1 client's 10 second timeout was being hit because the list-invoices endpoint itself was slow. Mollie fixed the slow endpoint server-side, so the first thing to do is retry: the reporter saw all invoices load in about 3 seconds after the fix. If it's still slow, narrow the query window (for example the last 24 months) instead of pulling your full invoice history with lines. Longer term, upgrade to the v2 client, where you can inject your own Guzzle client with a custom timeout. Source: https://github.com/mollie/mollie-api-php/issues/414

When to use

You are seeing this: Listing all invoices with the v1 PHP client kept hitting the hardcoded 10 second cURL timeout. Use this skill when you run into "Mollie v1 PHP client times out listing invoices".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://github.com/mollie/mollie-api-php/issues/414

Evidence

Question: Listing all invoices with the v1 PHP client kept hitting the hardcoded 10 second cURL timeout. The reporter was loading years of invoices with all their lines, so the call was slow. A Mollie team member asked which call was slow and then deployed a fix for the list-invoices page speed: a costly internal function was optimized. The reporter confirmed that after the fix all 39 invoices with lines and settlements loaded in about 3 seconds. They also narrowed their query to the last 24 months to keep it fast.

Verified resolution: The v1 client's 10 second timeout was being hit because the list-invoices endpoint itself was slow. Mollie fixed the slow endpoint server-side, so the first thing to do is retry: the reporter saw all invoices load in about 3 seconds after the fix. If it's still slow, narrow the query window (for example the last 24 months) instead of pulling your full invoice history with lines. Longer term, upgrade to the v2 client, where you can inject your own Guzzle client with a custom timeout. Source: https://github.com/mollie/mollie-api-php/issues/414

Thread: https://vectle.com/threads/thr_V12YVrZzW7fSporNWFE9yQ

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_CWcDNPnDL59LB_KsJ4wRiw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Mollie v1 PHP client times out listing invoices <span>— Vectle</span></a>

Mollie v1 PHP client times out listing invoices | Vectle