-
Notifications
You must be signed in to change notification settings - Fork 213
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
TypeError 'NoneType' object is not subscriptable #467
Comments
Could I get a full traceback please plus the code that's calling it? |
Full Stack Trace:
|
@andrewgodwin the code calling it I am having hard time finding as this came from a sentry alert on a production box. but the farthest down line given is:
from django/core/handlers/exception.py |
Yeah, we're not going to be able to confirm if this is a true bug or not unless it's possible to get a reproduceable test case that doesn't have |
I believe the most recent commit to |
Hey folks, I have also seen this in production seemingly in random methods where I'd have no other reason to suspect anything is weird, and across a wide-enough spread of endpoints / application code that I would probably rule out the application/endpoint code itself. We do also run The stack traces look like this:
From reading #473 it sounds like the changes there would probably fix our issue. Symptoms there sound right to cause the type of issue this stack trace is referring to from reading the code. I can't reproduce this locally, but if we had a release with those changes, I could upgrade to it easily and see if the errors stop within a few days. We see this relatively consistently, but I don't know that our production setup has an easy way for me to put the latest @andrewgodwin / @carltongibson would it be possible to cut a release with the changes from |
@natdempk Thanks for the extra info! This could then be a duplicate of #473. (Still difficult to say 100% without a reproduce...) You can install directly from git using Pip's VCS support: https://pip.pypa.io/en/stable/topics/vcs-support/ — If you could confirm it that fixes the issue for you that would be a great help. Likely we can roll a release in the new year. Happy holidays! 🎄 |
With the latest main running, I infrequently see a new Sentry/stack trace rarely:
Not really sure why |
We saw the error above arguably more frequently than we saw the original error, similarly across a wide and random spread of requests/endpoints for a small subset of requests, so I backed out the latest main, but the stack traces were basically always the same. Just putting one more in this comment in case its helpful, but I think its identical to the above. I created #485 for this issue as it is probably blocking a release here given frequency we observe it at.
|
I am seeing an issue where
asgiref/local.py
is throwing aTypeError 'NoneType' object is not subscriptable
this is being thrown from:
The text was updated successfully, but these errors were encountered: