-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Exceptions stack trace are truncated since 3.9.3 #6655
Comments
Interesting. From my test in #6435 (comment), there didn't seem to be a significant behavior change. Are you using Python 2 or Python 3? |
Agh. Confirmed. The change is fine on Python 3, but negatively affects Python 2 error handling. |
Bingo 😬 |
Can you roll back to 3.9.2? iirc, the only meaningful change was #6613 - the rest being docs/test fixes. Diff from 3.9.2...3.9.3 Also, at this point, we're already in the process of rolling 3.10, which drops Python 2 support entirely. |
Of course I've rolled back to 3.9.2, but that's definitely not an answer. I don't see why we should leave a version on prod with rather serious bugs IMO. This should be fixed for the the time being (ie as long as 3.9 series is supported). I'm certainly not the only one affected here. |
I don't consider this issue as serious although it definitively is really annoying. |
It shouldn't be too difficult. At least, not much more extra work than just the release itself.
The question is whether or not @carltongibson has the bandwidth to run through this. I don't want to volunteer/obligate him to work if he doesn't have the time. |
If you can create the tag Ryan I am happy to push it to PyPI |
👌 |
@carltongibson 3.9.4 is up 3.9.3...3.9.4 |
Also, there is a 3.9.x brach if we need to make any additional maintenance updates. |
OK. Super I’ll push that now. Thanks! |
Since introduction of change #6435 (commit fd32dd7), exceptions that are raised within a DRF
APIView
have their stack trace truncated. It is therefore very difficult to fix issues as there is no longer indication of line number/file affected when exception is uncaught.Steps to reproduce
GET /crash-me/
Expected behavior
Stack trace returned should be the following:
Actual behavior
Stack trace returned is the following:
The text was updated successfully, but these errors were encountered: