Project

General

Profile

Development #31438

combo/apps/wcs: ne pas cracher quand il y a un soucis de connexion au wcs

Added by Thomas Noël 8 months ago. Updated 8 months ago.

Status:
En cours
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
14 Mar 2019
Due date:
% Done:

0%

Patch proposed:
Yes
Planning:
No

Description

parce que sinon, par exemple sur le cron qui rafraichit les caches, en cas de soucis SSL, on se retrouve avec des mails d'alerte tels que :

combo.apps.wcs: error: HTTPSConnectionPool(host='wcs.dev.publik.love', port=443): Max retries exceeded with url: /api/categories/?orig=combo.dev.publik.love&algo=sha256&timestamp=2019-03-14T20%3A03%3A57Z&nonce=7b098ae5063f96bd6ad7c67897f75fefL&signature=DMAREPcVKl%2B8YCJ4s7m769J1DrXd1DMEqIjau66HXBo%3D (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fbaa7012310>: Failed to establish a new connection: [Errno 111] Connection refused',))

0001-DRAFT-tests-needed-wcs-handle-network-error-on-reque.patch View (2.68 KB) Thomas Noël, 14 Mar 2019 09:50 PM

History

#1 Updated by Thomas Noël 8 months ago

Un truc comme ça marche, mais il faudrait que j'ajoute des tests, quand même.

Also available in: Atom PDF