Project

Profile

Help

Issue #3420

Not able to access documentation endpoint

Added by kersom over 1 year ago. Updated 7 days ago.

Status:
MODIFIED
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 MODIFIED Actions

History

#1 Updated by bizhang over 1 year 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 over 1 year 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 over 1 year ago

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

#4 Updated by dalley over 1 year ago

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

#5 Updated by bmbouter over 1 year ago

  • Sprint set to Sprint 33

#6 Updated by bmbouter over 1 year ago

  • Sprint/Milestone deleted (56)

#7 Updated by jortel@redhat.com over 1 year ago

  • Sprint changed from Sprint 33 to Sprint 34

#8 Updated by milan over 1 year ago

  • Assignee set to milan

#9 Updated by ipanova@redhat.com over 1 year ago

  • Status changed from NEW to ASSIGNED

#10 Updated by milan over 1 year ago

  • Status changed from ASSIGNED to POST

#11 Updated by milan over 1 year 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 charlotteberry999 6 months ago

The development record is virtually not an outline file. It just imparts improve. For this situation, it introduced that it had five activities and it finished 5 that's right. The advancement record simply tells the consumer how ways alongside things are and in all likelihood to what volume the consumer must desire to pause. UK Dissertation Help

#13 Updated by daviddavis 6 months ago

  • Sprint/Milestone set to 3.0

#14 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

#15 Updated by fretacollins 7 days ago

If you have difficulty outlining the best ideas for your personal essay example for high school, why not ask someone whom you know for assistance?
Here you will find out help with it https://prime-essay.net/personal-essay-for-high-school

Please register to edit this issue

Also available in: Atom PDF