-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django REST API Docs error #2021
Comments
I am getting a similar error on a recent fresh install on Centos Python 3.4.8 [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.```
I'm now getting this:
`maximum recursion depth exceeded while pickling an object` |
I can confirm this issue, but only when running in production. The docs work okay when running via the development server ( |
Hi, I can confirm that the API docs load when running via the development server, albeit it's slow to load. Firefox also complains that a website is slowing the browser down when opening the API docs. One thing I noted though is that the page loads with all leafs/sections expanded. Is it possible to change this behavior to all collapsed? That might help ease off the load a bit. I also get a small red section at the bottom of the page
|
Note, I went ahead and upgraded the Python on the server I had just installed Netbox on (Centos 7) from 3.4.8 to 3.6 and now the API docs page is working. So perhaps a difference in Python3.4 and Python3.5 or Python3.6. |
We've also noticed that restarting the daemon multiple times will sometimes bring the API docs back, but we're experiencing the same issue. |
Here's the trace from running with
|
I also had this with CentOS and the python34* packages - upon upgrading python34-devel to python36-devel the problem disappeared. |
I upgraded from Python version: 3.4.5 to Python version: 3.4.8 and the issue persists. @alejandrosalinas I'm not to keen on upgrading the box to Python 3.6. Did you just upgrade the dev package, or all of it? |
@bartdebruijn the only python36 packages that I see in the upgraded host are: Best |
I can confirm that after installing: python36.x86_64 The API docs is working again. It's a bit slow when opening, but at least it works again. |
Well, my victory was shortlived :( It's broken again :( |
Having the same issue, any update on this? I am running python3.4.8 on Centos 7 |
Having the same issue as well. Centos 7 with python 3.4.5-5 |
Still a problem for me - kinda has halted any integrations we wanted to do with Netbox |
@jamieimms It's not ideal, but I am not sure on how to fix it or what exactly is breaking. |
This took some digging, but it appears to be an issue with Django's caching as wrapped by drf-yasg specifically on Python 3.4. Testing with Python 3.5 I could not reproduce the issue. I believe the root stems from passing Pretty sure the change I'm about to push will fix it under NetBox v2.3.5, but please comment here if you still experience this issue under NetBox v2.3.5. |
2.3.5 fixed this for me |
Issue type
[ ] Feature request
[X] Bug report
[ ] Documentation
Environment
Description
Hi All,
I've upgraded Netbox to v2.3.2 and now I get the error as listed in the screenshot whenever I try to access the API Docs section of Netbox.
The strange thing is that the API itself still works. I can access https://mywebserver.me/api/ but not https://mywebserver.me/api/docs/ as this gives the aforementioned error.
Restarting nginx did not resolve the issue, neither did rebooting the server. The server is running AWS Linux 2.
Anyone have any idea what's wrong?
Kind regards,
Bart
The text was updated successfully, but these errors were encountered: