Project

Profile

Help

Issue #3420

Not able to access documentation endpoint

Added by kersom about 2 years ago. Updated 15 days ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 34

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

Blocks File Support - Issue #3351: The parameters in the api schema for the sync and publish endpoints are incorrect CLOSED - CURRENTRELEASE Actions

History

#1 Updated by bizhang about 2 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

#2 Updated by daviddavis about 2 years ago

Created a commit to revert the original change until this issue is resolved:

https://github.com/pulp/pulp_file/pull/50

#3 Updated by daviddavis about 2 years ago

  • Blocks Issue #3351: The parameters in the api schema for the sync and publish endpoints are incorrect added

#4 Updated by dalley about 2 years ago

  • Sprint/Milestone set to 56
  • Triaged changed from No to Yes

#5 Updated by bmbouter about 2 years ago

  • Sprint set to Sprint 33

#6 Updated by bmbouter about 2 years ago

  • Sprint/Milestone deleted (56)

#7 Updated by jortel@redhat.com about 2 years ago

  • Sprint changed from Sprint 33 to Sprint 34

#8 Updated by milan about 2 years ago

  • Assignee set to milan

#9 Updated by ipanova@redhat.com about 2 years ago

  • Status changed from NEW to ASSIGNED

#10 Updated by milan about 2 years ago

  • Status changed from ASSIGNED to POST

#11 Updated by milan about 2 years ago

  • Status changed from POST to MODIFIED

the PR https://github.com/pulp/pulp_file/pull/60 got merged solving this issue too

#12 Updated by daviddavis about 1 year ago

  • Sprint/Milestone set to 3.0.0

#13 Updated by bmbouter about 1 year ago

  • Tags deleted (Pulp 3)

#14 Updated by bmbouter 6 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF