You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing this issue with latest sanic-prometheus. It happens when I accessed a non-existed page..
[ERROR] Exception occurred in one of response middleware handlers
Traceback (most recent call last):
File "/home/.../lib/python3.6/site-packages/sanic/app.py", line 977, in handle_request
request, response, request_name=name
File "/home/.../lib/python3.6/site-packages/sanic/app.py", line 1281, in _run_response_middleware
_response = await _response
File "/home/.../lib/python3.6/site-packages/sanic_prometheus/__init__.py", line 125, in before_response
metrics.after_request_handler(request, response, get_endpoint)
File "/home/.../lib/python3.6/site-packages/sanic_prometheus/metrics.py", line 56, in after_request_handler
lat = time.time() - request.ctx.__START_TIME__
AttributeError: 'types.SimpleNamespace' object has no attribute '__START_TIME__'
I'm facing this issue with latest sanic-prometheus. It happens when I accessed a non-existed page..
Running:
Ubuntu 20.04
Python 3.6.9
sanic 20.6.3
sanic-prometheus 0.2.1
The text was updated successfully, but these errors were encountered: