Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-2138

AttributeError: 'Request' object has no attribute '_method'

    XMLWordPrintable

    Details

      Description

      2017-05-03 12:27:51,092 5747 mod_wsgi ERROR exception#custom_handler - Internal Server Error: {u'kwargs': {}, u'args': (), u'request': <rest_framework.request.Request object at 0x7f96fee2ec50>, u'view': <volumes.restapi.VolumeProxyViewSet object at 0x7f96fee2ed90>}
      Traceback (most recent call last):
        File "/usr/lib/python2.7/dist-packages/rest_framework/views.py", line 463, in dispatch
          response = handler(request, *args, **kwargs)
        File "/usr/share/openattic/volumes/restapi.py", line 532, in create
          request, dict(data, filesystem="", is_mirrored=False))
        File "/usr/share/openattic/rest/multinode/handlers.py", line 220, in _clone_request_with_new_data
          clone._method = request._method
        File "/usr/lib/python2.7/dist-packages/rest_framework/request.py", line 359, in __getattribute__
          six.reraise(info[0], info[1], info[2].tb_next)
        File "<string>", line 2, in reraise
      AttributeError: 'Request' object has no attribute '_method'
      

      Looks like the _method field is now called method

      Ubuntu Xenial, DRBD, DRF 3.3.32

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vtheile Theile, Volker
                Reporter:
                swagner Sebastian Wagner
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: