Type error when accessing /api/docs #843

Closed
opened 2025-12-29 16:26:16 +01:00 by adam · 1 comment
Owner

Originally created by @afics on GitHub (Apr 6, 2017).

Issue type: bug report

Python version: 3.4.2
NetBox version: v2.0-beta2

  1. Go to /api/docs
  2. Result:
<class 'TypeError'>

context must be a dict rather than RequestContext.

Expected: Swagger lists API calls, etc.

Originally created by @afics on GitHub (Apr 6, 2017). <!-- Please note: GitHub issues are to be used only for feature requests and bug reports. For installation assistance or general discussion, please join us on the mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please indicate "bug report" or "feature request" below. Be sure to search the existing set of issues (both open and closed) to see if a similar issue has already been raised. --> ### Issue type: bug report <!-- If filing a bug, please indicate the version of Python and NetBox you are running. (This is not necessary for feature requests.) --> **Python version:** 3.4.2 **NetBox version:** v2.0-beta2 1. Go to `/api/docs` 2. Result: ``` <class 'TypeError'> context must be a dict rather than RequestContext. ``` Expected: Swagger lists API calls, etc. <!-- If filing a bug, please record the exact steps taken to reproduce the bug and any errors messages that are generated. If filing a feature request, please precisely describe the data model or workflow you would like to see implemented, and provide a use case. -->
adam added the type: bug label 2025-12-29 16:26:16 +01:00
adam closed this issue 2025-12-29 16:26:16 +01:00
Author
Owner

@jeremystretch commented on GitHub (Apr 6, 2017):

requirements.txt wants django-rest-swagger==0.3.10. This should be changed to the lastest working version.

@jeremystretch commented on GitHub (Apr 6, 2017): requirements.txt wants `django-rest-swagger==0.3.10`. This should be changed to the lastest working version.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#843