Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(appstore): Also catch ClientException and ServerException
Signed-off-by: Marcel Müller <[email protected]>
  • Loading branch information
SystemKeeper committed Oct 1, 2025
commit a2c2fdafb6c049b4bf9eaa09db4f164c82b3bb9c
4 changes: 3 additions & 1 deletion lib/private/App/AppStore/Fetcher/Fetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
*/
namespace OC\App\AppStore\Fetcher;

use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Exception\ConnectException;
use GuzzleHttp\Exception\ServerException;
use OC\Files\AppData\Factory;
use OCP\AppFramework\Http;
use OCP\AppFramework\Utility\ITimeFactory;
Expand Down Expand Up @@ -86,7 +88,7 @@ protected function fetch($ETag, $content) {
$client = $this->clientService->newClient();
try {
$response = $client->get($this->getEndpoint(), $options);
} catch (ConnectException $e) {
} catch (ConnectException|ClientException|ServerException $e) {
$this->config->setAppValue('settings', 'appstore-fetcher-lastFailure', (string) time());
$this->logger->error('Failed to connect to the app store', ['exception' => $e]);
return [];
Expand Down
Loading