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

ValueError parsing citation: Field 'volume' expected a number but got '1984-1'. #184

Open
sentry-io bot opened this issue Sep 16, 2024 · 0 comments
Open

Comments

@sentry-io
Copy link

sentry-io bot commented Sep 16, 2024

I believe this error is related to eyecite:

A request to the citation-lookup endpoint with the following input:

text: "1984-1 Trade Cas. ¶66"

Parsed the volume as 1984-1 resulted in the following error:

invalid literal for int() with base 10: '1984-1'

Sentry Issue: COURTLISTENER-85Z

ValueError: invalid literal for int() with base 10: '1984-1'
  File "django/db/models/fields/__init__.py", line 2123, in get_prep_value
    return int(value)

ValueError: Field 'volume' expected a number but got '1984-1'.
(19 additional frame(s) were not displayed)
...
  File "cl/citations/api_views.py", line 78, in create
    **self._citation_handler(
  File "cl/citations/api_views.py", line 171, in _citation_handler
    self._get_clusters_for_canonical_list(
  File "cl/citations/api_views.py", line 219, in _get_clusters_for_canonical_list
    opinions, _count = async_to_sync(get_clusters_from_citation_str)(
  File "cl/search/selectors.py", line 54, in get_clusters_from_citation_str
    async for opinion in OpinionCluster.objects.filter(
  File "cl/search/models.py", line 2458, in filter
    clone.query.add_q(Q(*args, **kwargs))

Filed by: @albertisfu

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

No branches or pull requests

0 participants