Project

Profile

Help

Issue #3420

closed

Not able to access documentation endpoint

Added by kersom about 6 years ago. Updated almost 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
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

Blocks File Support - Issue #3351: The parameters in the api schema for the sync and publish endpoints are incorrectCLOSED - CURRENTRELEASEmilanActions
Actions #1

Updated by bizhang about 6 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

Actions #2

Updated by daviddavis about 6 years ago

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

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

Actions #3

Updated by daviddavis about 6 years ago

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

Updated by dalley about 6 years ago

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

Updated by bmbouter about 6 years ago

  • Sprint set to Sprint 33
Actions #6

Updated by bmbouter about 6 years ago

  • Sprint/Milestone deleted (56)
Actions #7

Updated by jortel@redhat.com about 6 years ago

  • Sprint changed from Sprint 33 to Sprint 34
Actions #8

Updated by milan about 6 years ago

  • Assignee set to milan
Actions #9

Updated by ipanova@redhat.com about 6 years ago

  • Status changed from NEW to ASSIGNED
Actions #10

Updated by milan about 6 years ago

  • Status changed from ASSIGNED to POST
Actions #11

Updated by milan about 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

Actions #12

Updated by daviddavis about 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #13

Updated by bmbouter about 5 years ago

  • Tags deleted (Pulp 3)
Actions #14

Updated by bmbouter over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF