juriscraper icon indicating copy to clipboard operation
juriscraper copied to clipboard

Trouble parsing NEF: TypeError: decoding to str: need a bytes-like object, NoneType found

Open sentry[bot] opened this issue 3 years ago • 1 comments

Sentry Issue: COURTLISTENER-2YY

TypeError: decoding to str: need a bytes-like object, NoneType found
(2 additional frame(s) were not displayed)
...
  File "cl/recap/tasks.py", line 1550, in process_recap_email
    data = report.data
  File "juriscraper/pacer/email.py", line 46, in data
    "email_recipients": self._get_email_recipients(),
  File "juriscraper/pacer/email.py", line 358, in _get_email_recipients
    return self._get_email_recipients_with_links(" ".join(recipient_lines))
  File "juriscraper/pacer/email.py", line 309, in _get_email_recipients_with_links
    f"{re.escape(end_point)}.*$",
  File "re.py", line 276, in escape
    pattern = str(pattern, 'latin1')

sentry[bot] avatar Aug 08 '22 17:08 sentry[bot]

This error is the same as #2145 and #553 I checked all the emails related to this error and all of them are NDA. That we need to add support to parse them.

albertisfu avatar Aug 09 '22 19:08 albertisfu

Alberto, you said this was "the same as" two other issues, which are now resolved. Does that mean this is resolved, or is there more here?

mlissner avatar Dec 16 '22 18:12 mlissner

I've confirmed and yes this error was triggered when we didn't have support for NDAs.

There is a similar error 2243, that is being raised when receiving a notification that updates entries metadata, I'll add some comments about my findings on it.

For now, this might be closed.

albertisfu avatar Dec 16 '22 23:12 albertisfu