Tracing the cause of drf_spectacular.plumbing.UnableToProceedError

I have inherited a Django app in which DRF Spectacular was never fully installed. I want to get it working so I can easily see how the API has been set up.

There are quite a few models and serializers, and I suspect a custom field may be the cause of this error I am getting: drf_spectacular.plumbing.UnableToProceedError

There is a stack trace pointing to drf_spectacular/plumbing.py but all that tells me is that a field type hint was not able to be generated, not which field or modal or whatever caused it.

In the Spectacular settings, I have debugging set up:

SPECTACULAR_SETTINGS = {
    'DEBUG': True,
    ...

How else can I tell what actually went wrong?

I am trying to generate the schema inside a docker container with this command: docker compose run --rm site python manage.py spectacular --color --file schema.yml

Back to Top