Closed thomasjiangcy closed 6 years ago
Uhhh...
This seems to be caused by your use of Redis as a cache backend. Disabling caching for the drf-yasg view or setting it up to use the in-memory cache should fix it temporarily.
I found a workaround which was to set cache_timeout=0
to disable to cache but not sure if this is an intended behavior
@axnsan12 Ah yes ok :)
Alright so I'm starting to think this is caused by the usage of the JSON serializer in django-redis
as opposed to the default pickle mode. As far as I can tell this won't work with any DRF views that return Response
objects, which includes our case here.
I'd say setting up a separate cache location using a different backend for the drf-yasg view would be your best bet here.
I followed the docs to set up
drf-yasg
but i kept getting this error. I even tried removing all my paths to leave only the schema paths and I'm still getting the error.Here are my deps:
And here is the error log:
Would appreciate any help! :)