laws-africa / peachjam

Project Peach Jam
https://agp.africanlii.org
GNU General Public License v3.0
2 stars 0 forks source link

ValueError: Field 'None' expected a number but got 'on'. #1891

Closed sentry-io[bot] closed 2 months ago

sentry-io[bot] commented 3 months ago

Sentry Issue: LII-1F6

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

ValueError: Field 'None' expected a number but got 'on'.
(17 additional frame(s) were not displayed)
...
  File "django/db/models/sql/query.py", line 1370, in build_filter
    condition = self.build_lookup(lookups, col, value)
  File "django/db/models/sql/query.py", line 1216, in build_lookup
    lookup = lookup_class(lhs, rhs)
  File "django/db/models/lookups.py", line 25, in __init__
    self.rhs = self.get_prep_lookup()
  File "django/db/models/lookups.py", line 240, in get_prep_lookup
    rhs_value = self.lhs.output_field.get_prep_value(rhs_value)
  File "django/db/models/fields/__init__.py", line 1825, in get_prep_value
    raise e.__class__(
actlikewill commented 2 months ago

looks like this lwas marked as resolved on sentry a while back, though I cant find a corresponding pr for it, I cant reproduce locally. it looks like the it occured on a single day and might have been some sort of bot. we can wait to see if it recurrs