Actions
Issue #3420
closedNot able to access documentation endpoint
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation
Sprint:
Sprint 34
Quarter:
Description
When attempting to HTTP GET '/api/v3/docs/' it is returning 'Server Error (500)'
'[02/Mar/2018 16:14:06] "GET /api/v3/docs/ HTTP/1.1" 500 27'
journalctl -xe
ar 02 11:14:06 localhost.localdomain pulp[6673]: django.request:ERROR: Internal Server Error: /api/v3/docs/
Traceback (most recent call last):
File "/home/pulp/pulpvenv/lib64/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/home/pulp/pulpvenv/lib64/python3.6/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
response = self._get_response(request)
File "/home/pulp/pulpvenv/lib64/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/pulp/pulpvenv/lib64/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/pulp/pulpvenv/lib64/python3.6/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
return view_func(*args, **kwargs)
File "/home/pulp/pulpvenv/lib64/python3.6/site-packages/django/views/generic/base.py", line 68, in view
return self.dispatch(request, *args, **kwargs)
File "/home/pulp/pulpvenv/lib64/python3.6/site-packages/rest_framework/views.py", line 494, in dispatch
response = self.handle_exception(exc)
File "/home/pulp/pulpvenv/lib64/python3.6/site-packages/rest_framework/views.py", line 454, in handle_exception
self.raise_uncaught_exception(exc)
File "/home/pulp/pulpvenv/lib64/python3.6/site-packages/rest_framework/views.py", line 491, in dispatch
response = handler(request, *args, **kwargs)
File "/home/pulp/pulpvenv/lib64/python3.6/site-packages/pulpcore/apidocs/views.py", line 29, in get
return response.Response(generator.get_schema(request, public=True))
File "/home/pulp/pulpvenv/src/drf-openapi/drf_openapi/entities.py", line 96, in get_schema
links = self.get_links(None if public else request)
File "/home/pulp/pulpvenv/src/drf-openapi/drf_openapi/entities.py", line 137, in get_links
link = self.get_link(path, method, view, version=getattr(request, 'version', None))
File "/home/pulp/pulpvenv/src/drf-openapi/drf_openapi/entities.py", line 158, in get_link
fields += view.schema.get_pagination_fields(path, method)
AttributeError: 'ManualSchema' object has no attribute 'get_pagination_fields'
Pulp version:
pulp-file==0.0.1a16
pulpcore==3.0.0a24
pulpcore-common==3.0.0a14
pulpcore-plugin==0.0.1a19
Related issues
Updated by bizhang almost 7 years ago
This issue is cause by us switching to ManualSchema in https://pulp.plan.io/issues/3351 (which isn't really supported by drf_openapi)
I think this would be a really good feature to contribute to upstream drf_openapi
Updated by daviddavis almost 7 years ago
Created a commit to revert the original change until this issue is resolved:
Updated by daviddavis almost 7 years ago
- Blocks Issue #3351: The parameters in the api schema for the sync and publish endpoints are incorrect added
Updated by dalley almost 7 years ago
- Sprint/Milestone set to 56
- Triaged changed from No to Yes
Updated by jortel@redhat.com almost 7 years ago
- Sprint changed from Sprint 33 to Sprint 34
Updated by ipanova@redhat.com almost 7 years ago
- Status changed from NEW to ASSIGNED
Updated by milan almost 7 years ago
- Status changed from ASSIGNED to POST
Updated by milan over 6 years ago
- Status changed from POST to MODIFIED
the PR https://github.com/pulp/pulp_file/pull/60 got merged solving this issue too
Updated by bmbouter about 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions