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
body_pos = request.stdin.tell()
request.stdin.seek(0)
body = request.stdin.read()
request.stdin.seek(body_pos)
However, it seems like under gunicorn this request.stdin doesn't have the tell method. (nor the seek method)²
Given that neither body_pos nor body seem to be used in that method, I'd suggest removing those 4 lines to make this code compatible with gunicorn. (or somehow check if tell is available)
_get_request_from_request(request):
¹ tries to do:However, it seems like under gunicorn this
request.stdin
doesn't have thetell
method. (nor theseek
method)²Given that neither
body_pos
norbody
seem to be used in that method, I'd suggest removing those 4 lines to make this code compatible with gunicorn. (or somehow check iftell
is available)¹ https://github.com/collective/collective.sentry/blob/master/collective/sentry/error_handler.py#L90-L93
¹ https://github.com/benoitc/gunicorn/blob/master/gunicorn/http/body.py#L177
The text was updated successfully, but these errors were encountered: