Skip to content

Commit

Permalink
Increase image fetching timeout to 2 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
samwilson authored Jun 30, 2023
1 parent 9e2b17c commit 571a6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Engine/EngineBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public function getImage( string $imageUrl, array $crop, ?bool $downloadMode = f
return $image;
}

$imageResponse = $this->httpClient->request( 'GET', $image->getUrl() );
$imageResponse = $this->httpClient->request( 'GET', $image->getUrl(), [ 'timeout' => 120 ] );
try {
$data = $imageResponse->getContent();
} catch ( ClientException $exception ) {
Expand Down

0 comments on commit 571a6b3

Please sign in to comment.