Closed Bug 1069782 Opened 11 years ago Closed 11 years ago

[traceback] KeyError: 'objects' api/v1/event/?format=ical&limit=%2527&start__gte=2014-09-17&offset=3

Categories

(Mozilla Reps Graveyard :: reps.mozilla.org, task)

task
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stephend, Assigned: nemo-yiannis)

References

()

Details

(Whiteboard: [kb=1576365] [fuzzer])

Traceback (most recent call last): File "/data/www/reps-dev.allizom.org/remo/vendor/lib/python/django/core/handlers/base.py", line 113, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib64/python2.6/site-packages/newrelic-2.22.1.20/newrelic/hooks/component_tastypie.py", line 43, in inner_fn_wrapper return inner_fn(*args, **kwargs) File "/data/www/reps-dev.allizom.org/remo/vendor/lib/python/django/views/decorators/csrf.py", line 77, in wrapped_view return view_func(*args, **kwargs) File "/data/www/reps-dev.allizom.org/remo/vendor-local/src/django-tastypie/tastypie/resources.py", line 242, in wrapper return self.error_response(request, data, response_class=http.HttpBadRequest) File "/data/www/reps-dev.allizom.org/remo/vendor-local/src/django-tastypie/tastypie/resources.py", line 1243, in error_response serialized = self.serialize(request, errors, desired_format) File "/data/www/reps-dev.allizom.org/remo/vendor-local/src/django-tastypie/tastypie/resources.py", line 397, in serialize return self._meta.serializer.serialize(data, format, options) File "/data/www/reps-dev.allizom.org/remo/vendor-local/src/django-tastypie/tastypie/serializers.py", line 193, in serialize serialized = getattr(self, "to_%s" % desired_format)(bundle, options) File "/data/www/reps-dev.allizom.org/remo/remo/base/serializers.py", line 152, in to_ical events = [event.obj for event in data['objects']] KeyError: 'objects'
Summary: [traceback] api/v1/event/?format=ical&limit=%2527&start__gte=2014-09-17&offset=3 throws a 500 Internal Server Error → [traceback] KeyError: 'objects' api/v1/event/?format=ical&limit=%2527&start__gte=2014-09-17&offset=3
Assignee: nobody → jgiannelos
Whiteboard: [fuzzer] → [kb=1576365] [fuzzer]
Commits pushed to master at https://github.com/mozilla/remo https://github.com/mozilla/remo/commit/e54eb92d9ce5810aa67465336d35312c37c2d3d8 [fix bug 1069782] Fix export to ical through api traceback. https://github.com/mozilla/remo/commit/9996e4cc558e452a0855a5232386e89e7f2fede8 Merge pull request #863 from akatsoulas/fix-events-api [fix bug 1069782] Fix export to ical through api traceback.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Version: unspecified → next
Verified on stage. This url [0] no more produces a 500 error. [0] https://reps.allizom.org/api/v1/event/50/?format=ical
Status: RESOLVED → VERIFIED
Reopening since the initial url still throws a 500 error in dev server.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
Marking as verified. The link in the description of the bug no returns a 404.
Status: RESOLVED → VERIFIED
Version: next → 446
Product: Mozilla Reps → Mozilla Reps Graveyard
You need to log in before you can comment on or make changes to this bug.