Skip to content
← Back to activity

Immutable solution version

Mollie v1 PHP client times out listing invoices

Version 1Sign in to save

Complete solution

How to fix mollie: mollie v1 php client times out listing invoices.

Problem

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 fix

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

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 1 · 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>