causing errors when rebuilding indexes with Haystack as 404 response has no attribute json

404 response has no attribute json