hotosm / osm-export-tool

Web service to download customised OSM data in various file formats
http://export.hotosm.org/
BSD 3-Clause "New" or "Revised" License
145 stars 46 forks source link

Login fails with ValidationError: ["'https:' is not a valid UUID."] #397

Open sentry-io[bot] opened 2 years ago

sentry-io[bot] commented 2 years ago

Sentry Issue: EXPORT-TOOL-2-PROD-L0-D3

ValueError: badly formed hexadecimal UUID string
  File "django/db/models/fields/__init__.py", line 2396, in to_python
    return uuid.UUID(value)
  File "python3.6/uuid.py", line 140, in __init__
    raise ValueError('badly formed hexadecimal UUID string')

ValidationError: ["'https:' is not a valid UUID."]
(20 additional frame(s) were not displayed)
...
  File "rest_framework/views.py", line 486, in dispatch
    response = handler(request, *args, **kwargs)
  File "api/views.py", line 206, in list
    return Response(serializer.data, status=status.HTTP_200_OK)
  File "rest_framework/serializers.py", line 739, in data
    ret = super(ListSerializer, self).data
  File "rest_framework/serializers.py", line 263, in data
    self._data = self.to_representation(self.instance)
  File "rest_framework/serializers.py", line 657, in to_representation
    self.child.to_representation(item) for item in iterable

ValidationError: ["'https:' is not a valid UUID."]
ramyaragupathy commented 2 years ago

Labelling it as critical since it limits end user benefits

cc @itskshitiz321 @LeenDhondt