sensors.AFRICA-api icon indicating copy to clipboard operation
sensors.AFRICA-api copied to clipboard

ValueError: Cannot assign "<SensorData: esp8266-5926214 7 [2]>": the current database router prevents this re...

Open sentry-io[bot] opened this issue 1 year ago • 0 comments

Sentry Issue: SENSORSAFRICA-API-JS

ValueError: Cannot assign "<SensorData: esp8266-5926214 7 [2]>": the current database router prevents this relation.
(14 additional frame(s) were not displayed)
...
  File "rest_framework/serializers.py", line 686, in to_representation
    self.child.to_representation(item) for item in iterable
  File "django/db/models/query.py", line 250, in __iter__
    self._fetch_all()
  File "django/db/models/query.py", line 1121, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "django/db/models/query.py", line 83, in __iter__
    setattr(obj, field.name, rel_obj)
  File "django/db/models/fields/related_descriptors.py", line 226, in __set__
    raise ValueError('Cannot assign "%r": the current database router prevents this relation.' % value)

sentry-io[bot] avatar Dec 13 '22 12:12 sentry-io[bot]