Skip to content

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x97 in position 8811: invalid start byte #181

Open
@sentry-io

Description

@sentry-io

Sentry Issue: DOCTOR-E

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x97 in position 8811: invalid start byte
  File "doctor/views.py", line 101, in extract_doc_content
    content, err, returncode = extract_from_html(fp)
  File "doctor/tasks.py", line 339, in extract_from_html
    content = f.read()

This is linked to the courtlistener Sentry issue https://freelawproject.sentry.io/issues/5017932231/?project=5257254, the events were registered at almost the same time.

Also, is one of the causes of this issue freelawproject/courtlistener#3811

Filed by @grossir

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions