flasgger: /package_example/apidocs/ fails with INTERNAL SERVER ERROR /package_example/apispec_1.json
Navigating to http://flasgger.pythonanywhere.com/package_example/apidocs/ (as linked from index page) produces:
Failed to load API definition.
Fetch error
INTERNAL SERVER ERROR /package_example/apispec_1.json
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 15 (3 by maintainers)
This issue is caused by the flasgger.pythonanywhere.com deployment not having the
marshmallow
package installed (at all), because it is only in requirements-dev.txt and not in setup.py (or requirements.txt).I propose adding an optional extras to setup.py if adding marshmallow will be a common-enough additional module, otherwise just update the deployment on pythonanywhere to pre-install that module. Then to fully resolve, the pythonanywhere deployment scripts will need an update (I don’t think those are currently in the project).