From eb916e9d40ca82cc797a3e8590ffa0a2470b8c3a Mon Sep 17 00:00:00 2001 From: Scottie Lee Date: Wed, 23 Sep 2026 12:27:48 +0200 Subject: [PATCH] fix: apply configured request timeout when retrieving uploaded files wp_remote_get/wp_remote_head default to a 5 second timeout. Larger uploads or slow loopback requests time out, resulting in an enkelvoudiginformatieobject with an empty 'inhoud'. Co-Authored-By: Claude Opus 5.5 (1M context) --- src/Traits/InformationObject.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Traits/InformationObject.php b/src/Traits/InformationObject.php index 8bb122e..05d521c 100644 --- a/src/Traits/InformationObject.php +++ b/src/Traits/InformationObject.php @@ -35,6 +35,7 @@ public function encode_base64_from_url( string $url ): string $url, array( 'sslverify' => owc_gravityforms_zgw_env_is_prod(), + 'timeout' => ContainerResolver::make()->get( 'zgw.site_options' )->client_request_timeout_option(), ) ); @@ -115,6 +116,7 @@ protected function get_headers( string $url ): array $url, array( 'sslverify' => owc_gravityforms_zgw_env_is_prod(), + 'timeout' => ContainerResolver::make()->get( 'zgw.site_options' )->client_request_timeout_option(), ) );