{"action":"created","issue":{"url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3350","labels_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3350/labels{/name}","comments_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3350/comments","events_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3350/events","html_url":"https://github.com/tomchristie/django-rest-framework/issues/3350","id":104024472,"number":3350,"title":"Response caching issue","user":{"login":"codingjoe","id":1772890,"avatar_url":"https://avatars.githubusercontent.com/u/1772890?v=3","gravatar_id":"","url":"https://api.github.com/users/codingjoe","html_url":"https://github.com/codingjoe","followers_url":"https://api.github.com/users/codingjoe/followers","following_url":"https://api.github.com/users/codingjoe/following{/other_user}","gists_url":"https://api.github.com/users/codingjoe/gists{/gist_id}","starred_url":"https://api.github.com/users/codingjoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codingjoe/subscriptions","organizations_url":"https://api.github.com/users/codingjoe/orgs","repos_url":"https://api.github.com/users/codingjoe/repos","events_url":"https://api.github.com/users/codingjoe/events{/privacy}","received_events_url":"https://api.github.com/users/codingjoe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tomchristie/django-rest-framework/labels/Needs%20information","name":"Needs information","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-31T10:16:07Z","updated_at":"2015-11-12T13:14:48Z","closed_at":"2015-09-01T08:13:33Z","body":"Pickel do not work since version 3.2.* on a restframework response. Thus caching responses doesn't work if you use the pickel serializer for caching.\r\n```\r\nTypeError: __new__() takes exactly 3 arguments (2 given)\r\n  File \"django/core/handlers/base.py\", line 111, in get_response\r\n    response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n  File \"newrelic/hooks/framework_django.py\", line 499, in wrapper\r\n    return wrapped(*args, **kwargs)\r\n  File \"django/views/decorators/csrf.py\", line 57, in wrapped_view\r\n    return view_func(*args, **kwargs)\r\n  File \"rest_framework/viewsets.py\", line 87, in view\r\n    return self.dispatch(request, *args, **kwargs)\r\n  File \"newrelic/hooks/component_djangorestframework.py\", line 27, in _nr_wrapper_APIView_dispatch_\r\n    return wrapped(*args, **kwargs)\r\n  File \"rest_framework/views.py\", line 466, in dispatch\r\n    response = self.handle_exception(exc)\r\n  File \"rest_framework/views.py\", line 463, in dispatch\r\n    response = handler(request, *args, **kwargs)\r\n  File \"rest_framework_extensions/cache/decorators.py\", line 43, in inner\r\n    kwargs=kwargs,\r\n  File \"rest_framework_extensions/cache/decorators.py\", line 60, in process_cache_response\r\n    response = self.cache.get(key)\r\n  File \"django_redis/cache.py\", line 25, in _decorator\r\n    return method(self, *args, **kwargs)\r\n  File \"django_redis/cache.py\", line 73, in get\r\n    client=client)\r\n  File \"django_redis/client/default.py\", line 205, in get\r\n    return self.decode(value)\r\n  File \"django_redis/client/default.py\", line 303, in decode\r\n    value = self._serializer.loads(value)\r\n  File \"django_redis/serializers/pickle.py\", line 43, in loads\r\n    return pickle.loads(force_bytes(value))\r\n```"},"comment":{"url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/comments/156099728","html_url":"https://github.com/tomchristie/django-rest-framework/issues/3350#issuecomment-156099728","issue_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3350","id":156099728,"user":{"login":"mlavin","id":149057,"avatar_url":"https://avatars.githubusercontent.com/u/149057?v=3","gravatar_id":"","url":"https://api.github.com/users/mlavin","html_url":"https://github.com/mlavin","followers_url":"https://api.github.com/users/mlavin/followers","following_url":"https://api.github.com/users/mlavin/following{/other_user}","gists_url":"https://api.github.com/users/mlavin/gists{/gist_id}","starred_url":"https://api.github.com/users/mlavin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlavin/subscriptions","organizations_url":"https://api.github.com/users/mlavin/orgs","repos_url":"https://api.github.com/users/mlavin/repos","events_url":"https://api.github.com/users/mlavin/events{/privacy}","received_events_url":"https://api.github.com/users/mlavin/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T13:14:48Z","updated_at":"2015-11-12T13:14:48Z","body":"A new issue that `Hyperlink` objects cannot be pickled seems more actionable and testable. I'll open a new one."}}