Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No docket number sent with appellate docket upload #348

Open
sentry-io bot opened this issue Jul 26, 2023 · 2 comments
Open

No docket number sent with appellate docket upload #348

sentry-io bot opened this issue Jul 26, 2023 · 2 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Jul 26, 2023

Sentry Issue: COURTLISTENER-4JA

ValidationError: ["'docket_number' cannot be Null or empty in RECAP dockets."]
(23 additional frame(s) were not displayed)
...
  File "cl/recap/views.py", line 56, in perform_create
    await process_recap_upload(pq)
  File "cl/recap/tasks.py", line 118, in process_recap_upload
    docket = await process_recap_appellate_docket(pq.pk)
  File "cl/recap/tasks.py", line 969, in process_recap_appellate_docket
    await d.asave()
  File "asyncio/tasks.py", line 442, in wait_for
    return await fut
  File "cl/search/models.py", line 701, in save
    raise ValidationError(
@mlissner mlissner moved this to RECAP Backlog in @erosendo's backlog Jul 27, 2023
@ERosendo
Copy link

I reviewed this issue and found the AppellateDocketReport class is failing to parse the docket_number because Mobile Safari is wrapping the string with anchor tags. It seems like this browser automatically creates links for strings of digits that look like telephone numbers.

The docket number in the HTML uploaded from Mobile Safari looks like this:

<td>
<b>Court of Appeals Docket #: </b>
<a href="tel:22-10782">22-10782</a>
</td>

While the same page looks like this on Chrome:

<td>
<b>Court of Appeals Docket #: </b>
22-10782
</td> 

Here's a zip with the HTML pages:

Docket 22-10782.zip

@mlissner
Copy link
Member

Ugh. Ridiculous.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: RECAP Backlog
Development

No branches or pull requests

2 participants