Skip to content

invalid literal for int() with base 10: '' #3

Description

@g3rb3n

request_headers['content_length'] seems to be sometimes empty

invalid literal for int() with base 10: ''

Request Method: GET
Request URL: http://127.0.0.1:8000/nl/
Django Version: 2.1.2
Exception Type: ValueError
Exception Value:
invalid literal for int() with base 10: ''
Exception Location: /.../lib/python3.5/site-packages/django_access_logger/access_logger.py in build_log_dict, line 59
Python Version: 3.5.2
Server time: ma, 12 Nov 2018 14:27:53 +0000

django_access_logger/access_logger.py:59 in build_log_dict if "content_length" in request_headers else 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions