Skip to content

data/defaults.yaml: Set search as empty dict in webapp conf

When a conf entry equals None, the explicit default one will be used instead. So ensure to set an empty dict for the search conf entry of swh-web to avoid search errors until swh-search is deployed in production.

When testing inside the docker environment without that fix, the following errors are reported:

swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.connectionpool._new_conn:225 - Starting new HTTP connection (1): 127.0.0.1:5010
swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.util.retry.increment:438 - Incremented Retry for (url='/origin/search'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
swh-web_1                       | [13/Jan/2020 14:27:41] [WARNING] urllib3.connectionpool.urlopen:745 - Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe0cc585550>: Failed to establish a new connection: [Errno 111] Connection refused')': /origin/search
swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.connectionpool._new_conn:225 - Starting new HTTP connection (2): 127.0.0.1:5010
swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.util.retry.increment:438 - Incremented Retry for (url='/origin/search'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
swh-web_1                       | [13/Jan/2020 14:27:41] [WARNING] urllib3.connectionpool.urlopen:745 - Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe0cc5859d0>: Failed to establish a new connection: [Errno 111] Connection refused')': /origin/search
swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.connectionpool._new_conn:225 - Starting new HTTP connection (3): 127.0.0.1:5010
swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.util.retry.increment:438 - Incremented Retry for (url='/origin/search'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
swh-web_1                       | [13/Jan/2020 14:27:41] [WARNING] urllib3.connectionpool.urlopen:745 - Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe0cc5746d0>: Failed to establish a new connection: [Errno 111] Connection refused')': /origin/search
swh-web_1                       | [13/Jan/2020 14:27:41] [DEBUG] urllib3.connectionpool._new_conn:225 - Starting new HTTP connection (4): 127.0.0.1:5010

Migrated from D2523 (view on Phabricator)

Merge request reports