Skip to content

[6.x] Add a timeout to Marketplace API requests - #15591

Merged
jasonvarga merged 1 commit into
statamic:6.xfrom
lazerg:fix/issue-15590-marketplace-timeout
Oct 7, 2026
Merged

jasonvarga merged 1 commit into
statamic:6.xfrom
lazerg:fix/issue-15590-marketplace-timeout

Conversation

@lazerg

@lazerg lazerg commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

This pull request fixes an issue where the CP dashboard hangs (and ends in a 504) when statamic.com accepts connections but never responds.

The Marketplace client sent its requests without a timeout, and Guzzle waits forever by default. The updater widget and the /cp/updater/count badge both go through it, so every CP page load sat on the hung request. On top of that, Marketplace only caught RequestException, and a timeout throws a ConnectException, so adding a timeout alone would turn the 504 into a 500.

This PR fixes it by giving the client a 5 second timeout (same as Outpost) and catching TransferException instead, so a timeout falls back to the empty response like an HTTP error already does.

Fixes #15590

@jasonvarga
jasonvarga merged commit c22980c into statamic:6.x Oct 7, 2026
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Marketplace client has no HTTP timeout, so a statamic.com outage 504s the CP dashboard (updater widget)

2 participants