No API documentation on 3.1.10 Docker

When things doesn't work as they should.
Post Reply
Bastian
Posts: 12
Joined: Tue Dec 04, 2018 6:18 pm

No API documentation on 3.1.10 Docker

Post by Bastian » Fri May 10, 2019 8:53 am

Hi,

I just realised that on the last version 3.1.10 I get no API documentation.
No swagger and no redoc.

buttle
Posts: 2
Joined: Fri May 17, 2019 12:39 pm

Re: No API documentation on 3.1.10 Docker

Post by buttle » Sun May 19, 2019 11:22 am

Hi,

I've got the some thing here. Restarting the container does not help. Logs say

Code: Select all

common.middleware.error_logging <45> [ERROR] "process_exception() line 17 Exception caught by request middleware; <WSGIRequest: GET '/swagger/?format=openapi'>, spec validation failed"
Traceback (most recent call last):
  File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 215, in _get_response
    response = response.render()
  File "/opt/mayan-edms/local/lib/python2.7/site-packages/django/template/response.py", line 107, in render
    self.content = self.rendered_content
  File "/opt/mayan-edms/local/lib/python2.7/site-packages/rest_framework/response.py", line 72, in rendered_content
    ret = renderer.render(self.data, accepted_media_type, context)
  File "/opt/mayan-edms/local/lib/python2.7/site-packages/drf_yasg/renderers.py", line 25, in render
    return codec.encode(data)
  File "/opt/mayan-edms/local/lib/python2.7/site-packages/drf_yasg/codecs.py", line 73, in encode
    raise SwaggerValidationError("spec validation failed", errors, spec, self)
SwaggerValidationError: spec validation failed
Hope this helps.

User avatar
rosarior
Posts: 303
Joined: Tue Aug 21, 2018 3:28 am

Re: No API documentation on 3.1.10 Docker

Post by rosarior » Sun May 19, 2019 7:07 pm

It seems to happen at random, appears to be a problem with the library. We are still investigating the cause. Same discussion in another thread: viewtopic.php?f=9&t=438

Post Reply