ERROR:aiohttp.server:Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/prozorro_sale/metrics/__init__.py", line 20, in metrics
response = web.Response(body=prometheus_client.generate_latest())
File "/usr/local/lib/python3.8/site-packages/prometheus_client/exposition.py", line 137, in generate_latest
output.append(sample_line(s))
File "/usr/local/lib/python3.8/site-packages/prometheus_client/exposition.py", line 93, in sample_line
['{0}="{1}"'.format(
File "/usr/local/lib/python3.8/site-packages/prometheus_client/exposition.py", line 94, in <listcomp>
k, v.replace('\\', r'\\').replace('\n', r'\n').replace('"', r'\"'))
AttributeError: ("'NoneType' object has no attribute 'replace'", Metric(mirror_clients_lag, Client lag time between last sync and now, info, , [Sample(name='mirror_clients_lag_info', labels={'144.76.219.204': None}, value=1.0, timestamp=None, exemplar=None)]))
INFO:aiohttp.access:10.198.212.95 [22/Jul/2020:12:43:58 +0000] "GET /metrics HTTP/1.1" 500 244 "-" "Prometheus/2.15.2"``