Title: UWSGI offload() skipped because of _ScopedResponse · Issue #5107 · getsentry/sentry-python · GitHub
Open Graph Title: UWSGI offload() skipped because of _ScopedResponse · Issue #5107 · getsentry/sentry-python
X Title: UWSGI offload() skipped because of _ScopedResponse · Issue #5107 · getsentry/sentry-python
Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.13.0 Steps to Reproduce Setup a view in django to serve a file using FileResponse Look at uWSGI logs to see switches and serve strategy Because Sentry overrides wsgi handler, it'll...
Open Graph Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.13.0 Steps to Reproduce Setup a view in django to serve a file using FileResponse Look at uWSGI logs to see switches and serve strategy Beca...
X Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.13.0 Steps to Reproduce Setup a view in django to serve a file using FileResponse Look at uWSGI logs to see switches and serve strategy Beca...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/5107
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"UWSGI offload() skipped because of _ScopedResponse","articleBody":"### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Version\n\n2.13.0\n\n### Steps to Reproduce\n\n1. Setup a view in django to serve a file using FileResponse\n2. Look at uWSGI logs to see switches and serve strategy\n3. Because Sentry overrides wsgi handler, it'll use this ScopedResponse which doesn't have a fileno\n4. uWSGI sees this and serves the file without offload()\n\n### Expected Result\n\nI expect a log line like\n```\n[pid: 7|app: 0|req: 1/1] 127.0.0.1 () {28 vars in 380 bytes} [Tue Nov 11 16:27:44 2025] GET /file/ => generated 605 bytes in 361 msecs via offload() (HTTP/1.1 200) 7 headers in 261 bytes (0 switches on core 0)\n```\n\n### Actual Result\n\n```\n[pid: 8|app: 0|req: 1/1] 127.0.0.1 () {28 vars in 402 bytes} [Thu Nov 13 13:13:09 2025] GET /file/ => generated 605 bytes in 1157 msecs (HTTP/1.1 200) 7 headers in 261 bytes (30 switches on core 0)\n```","author":{"url":"https://github.com/czpython","@type":"Person","name":"czpython"},"datePublished":"2025-11-13T13:18:18Z","url":"https://github.com/getsentry/sentry-python/issues/5107"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4ba10766-8666-d01a-3db5-123a15cca3d9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9794:8196C:77762C:A0CD41:6B00DA98 |
| html-safe-nonce | 2155745ef388c0133357bd232f3a6bb89963891abe4a4c37f6484729224c2393 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Nzk0OjgxOTZDOjc3NzYyQzpBMENENDE6NkIwMERBOTgiLCJ2aXNpdG9yX2lkIjoiNDA0NDE1MTk2NjYwMTg5NDU1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d234d46f31c28d03da3a86a5e2173e736cc3b1443d2db0aff123a6564a36b08e |
| hovercard-subject-tag | issue:3621196937 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-python/5107/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2705ba86fd5581bbead2b925ad02177115ea4ff0ca4d96d0823263c95c143bb7/getsentry/sentry-python/issues/5107 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2705ba86fd5581bbead2b925ad02177115ea4ff0ca4d96d0823263c95c143bb7/getsentry/sentry-python/issues/5107 |
| og:image:alt | How do you use Sentry? Sentry Saas (sentry.io) Version 2.13.0 Steps to Reproduce Setup a view in django to serve a file using FileResponse Look at uWSGI logs to see switches and serve strategy Beca... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | czpython |
| hostname | github.com |
| expected-hostname | github.com |
| None | a481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 84c8c5cc25e2fb7f2308428458538436baecc6d2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width