Advertisement
mikedep333

pulp-api on k8s error

May 7th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. pulp: django.request:ERROR: Internal Server Error: /pulp/api/v3/docs/api.json
  2. Traceback (most recent call last):
  3. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
  4. response = get_response(request)
  5. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
  6. response = self.process_exception_by_middleware(e, request)
  7. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
  8. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  9. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/drf_yasg/views.py", line 35, in _wrapped_view_func
  10. response = view_func(request, *args, **kwargs)
  11. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/utils/decorators.py", line 142, in _wrapped_view
  12. response = view_func(request, *args, **kwargs)
  13. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/views/decorators/vary.py", line 20, in inner_func
  14. response = func(*args, **kwargs)
  15. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
  16. return view_func(*args, **kwargs)
  17. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/django/views/generic/base.py", line 71, in view
  18. return self.dispatch(request, *args, **kwargs)
  19. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 495, in dispatch
  20. response = self.handle_exception(exc)
  21. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 455, in handle_exception
  22. self.raise_uncaught_exception(exc)
  23. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 466, in raise_uncaught_exception
  24. raise exc
  25. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/rest_framework/views.py", line 492, in dispatch
  26. response = handler(request, *args, **kwargs)
  27. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/drf_yasg/views.py", line 95, in get
  28. schema = generator.get_schema(request, self.public)
  29. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pulpcore/app/openapigenerator.py", line 235, in get_schema
  30. schema = super().get_schema(request=request, public=public)
  31. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/drf_yasg/generators.py", line 244, in get_schema
  32. paths, prefix = self.get_paths(endpoints, components, request, public)
  33. File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/pulpcore/app/openapigenerator.py", line 96, in get_paths
  34. resource_model = endpoints[resource_other_path][0].queryset.model
  35. AttributeError: 'NoneType' object has no attribute 'model'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement