Git Product home page Git Product logo

Comments (3)

barseghyanartur avatar barseghyanartur commented on August 12, 2024

Please, include full trace.

from django-elasticsearch-dsl-drf.

siddharthk-hashedin avatar siddharthk-hashedin commented on August 12, 2024

Full traceback:

  File "/home/hasher/elastic_search_django-drf/venv/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/home/hasher/elastic_search_django-drf/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/hasher/elastic_search_django-drf/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/hasher/elastic_search_django-drf/venv/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
    return view_func(*args, **kwargs)
  File "/home/hasher/elastic_search_django-drf/venv/local/lib/python2.7/site-packages/rest_framework/viewsets.py", line 86, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/hasher/elastic_search_django-drf/venv/local/lib/python2.7/site-packages/rest_framework/views.py", line 489, in dispatch
    response = self.handle_exception(exc)
  File "/home/hasher/elastic_search_django-drf/venv/local/lib/python2.7/site-packages/rest_framework/views.py", line 449, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/home/hasher/elastic_search_django-drf/venv/local/lib/python2.7/site-packages/rest_framework/views.py", line 477, in dispatch
    self.initial(request, *args, **kwargs)
  File "/home/hasher/elastic_search_django-drf/venv/local/lib/python2.7/site-packages/rest_framework/views.py", line 395, in initial
    self.check_permissions(request)
  File "/home/hasher/elastic_search_django-drf/venv/local/lib/python2.7/site-packages/rest_framework/views.py", line 328, in check_permissions
    if not permission.has_permission(request, self):
  File "/home/hasher/elastic_search_django-drf/venv/local/lib/python2.7/site-packages/rest_framework/permissions.py", line 133, in has_permission
    perms = self.get_required_permissions(request.method, queryset.model)
AttributeError: 'Search' object has no attribute 'model'
ERROR 2018-04-16 07:54:23,049 django.server "GET /search/books/ HTTP/1.1" 500 109392

I guess there is some problem with this line of code(at last traceback):
perms = self.get_required_permissions(request.method, queryset.model)
in /home/hasher/elastic_search_django-drf/venv/local/lib/python2.7/site-packages/rest_framework/permissions.py

from django-elasticsearch-dsl-drf.

siddharthk-hashedin avatar siddharthk-hashedin commented on August 12, 2024

Solution was to downgrade elasticsearch version.

from django-elasticsearch-dsl-drf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.