Skip to content

Commit 4a5b48c

Browse files
committed
SierrApi, FullTextTrait: Disable exceptions on HTTP error statuses.
1 parent 24b02d6 commit 4a5b48c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/RecordManager/Base/Harvest/SierraApi.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ class SierraApi extends AbstractBase
124124
* @var array
125125
*/
126126
protected $httpOptions = [
127+
'http_errors' => false,
127128
// Set a timeout since Sierra may sometimes just hang without ever returning.
128129
'timeout' => 600,
129130
];

src/RecordManager/Base/Record/FullTextTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ protected function getUrl($url)
143143
$maxTries = $this->config['FullTextEnrichment']['max_tries'] ?? 90;
144144
$retryWait = $this->config['FullTextEnrichment']['retry_wait'] ?? 5;
145145
$httpOptions = [
146+
'http_errors' => false,
146147
'allow_redirects' => true,
147148
];
148149

0 commit comments

Comments
 (0)