UHaifa-IS / whgazetteer-mehdie

World Historical Gazetteer - MEHDIE version
http://whgazetteer.org
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Something wrong in Gil place 55078 #203

Closed tomersagi closed 2 weeks ago

tomersagi commented 2 weeks ago
Traceback:

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/django/core/handlers/exception.py" in inner
  34.             response = get_response(request)

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/django/core/handlers/base.py" in _get_response
  115.                 response = self.process_exception_by_middleware(e, request)

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/django/core/handlers/base.py" in _get_response
  113.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/sentry_sdk/integrations/django/views.py" in sentry_wrapped_callback
  87.                 return callback(request, *args, **kwargs)

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/django/views/decorators/csrf.py" in wrapped_view
  54.         return view_func(*args, **kwargs)

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/django/views/generic/base.py" in view
  71.             return self.dispatch(request, *args, **kwargs)

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/rest_framework/views.py" in dispatch
  509.             response = self.handle_exception(exc)

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/rest_framework/views.py" in handle_exception
  469.             self.raise_uncaught_exception(exc)

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/rest_framework/views.py" in raise_uncaught_exception
  480.         raise exc

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/rest_framework/views.py" in dispatch
  506.             response = handler(request, *args, **kwargs)

File "/home/user/whgazetteer-mehdie/api/views.py" in get
  840.                     linked_place_links = PlaceLink.objects.filter(place_id=place_id)

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/django/db/models/manager.py" in manager_method
  82.                 return getattr(self.get_queryset(), name)(*args, **kwargs)

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/django/db/models/query.py" in filter
  892.         return self._filter_or_exclude(False, *args, **kwargs)

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/django/db/models/query.py" in _filter_or_exclude
  910.             clone.query.add_q(Q(*args, **kwargs))

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/django/db/models/sql/query.py" in add_q
  1313.         clause, _ = self._add_q(q_object, self.used_aliases)

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/django/db/models/sql/query.py" in _add_q
  1338.                 child_clause, needed_inner = self.build_filter(

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/django/db/models/sql/query.py" in build_filter
  1274.         condition = self.build_lookup(lookups, col, value)

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/django/db/models/sql/query.py" in build_lookup
  1139.         lookup = lookup_class(lhs, rhs)

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/django/db/models/lookups.py" in __init__
  20.         self.rhs = self.get_prep_lookup()

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/django/db/models/fields/related_lookups.py" in get_prep_lookup
  115.                 self.rhs = target_field.get_prep_value(self.rhs)

File "/home/user/whgazetteer-mehdie/venv/lib/python3.10/site-packages/django/db/models/fields/__init__.py" in get_prep_value
  972.         return int(value)

Exception Type: ValueError at /api/place/55078/
Exception Value: invalid literal for int() with base 10: 'Abusir'
Request information:
tomersagi commented 2 weeks ago

fixed