Title: Error when explicitly passing `trace_configs=None` to `aiohttp.ClientSession` · Issue #2233 · getsentry/sentry-python · GitHub
Open Graph Title: Error when explicitly passing `trace_configs=None` to `aiohttp.ClientSession` · Issue #2233 · getsentry/sentry-python
X Title: Error when explicitly passing `trace_configs=None` to `aiohttp.ClientSession` · Issue #2233 · getsentry/sentry-python
Description: How do you use Sentry? Self-hosted/on-premise Version 1.27.0 Steps to Reproduce With the aiohttp integration, use aiohttp.ClientSession with trace_configs explicitly passed as None import asyncio import sentry_sdk import aiohttp sentry_s...
Open Graph Description: How do you use Sentry? Self-hosted/on-premise Version 1.27.0 Steps to Reproduce With the aiohttp integration, use aiohttp.ClientSession with trace_configs explicitly passed as None import asyncio i...
X Description: How do you use Sentry? Self-hosted/on-premise Version 1.27.0 Steps to Reproduce With the aiohttp integration, use aiohttp.ClientSession with trace_configs explicitly passed as None import asyncio i...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/2233
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error when explicitly passing `trace_configs=None` to `aiohttp.ClientSession`","articleBody":"### How do you use Sentry?\n\nSelf-hosted/on-premise\n\n### Version\n\n1.27.0\n\n### Steps to Reproduce\n\nWith the `aiohttp` integration, use `aiohttp.ClientSession` with `trace_configs` explicitly passed as `None`\r\n```\r\nimport asyncio\r\nimport sentry_sdk\r\nimport aiohttp\r\n\r\nsentry_sdk.init()\r\n\r\nasync def main():\r\n async with aiohttp.ClientSession(trace_configs=None) as session:\r\n pass\r\n\r\nasyncio.run(main())\r\n```\n\n### Expected Result\n\nNo error (as in 1.26.0)\n\n### Actual Result\n\nAn error is raised:\r\n```python\r\nTraceback (most recent call last):\r\n File \"C:\\Users\\wookie184\\Documents\\GitHub\\bot\\hello.py\", line 11, in \u003cmodule>\r\n asyncio.run(main())\r\n File \"C:\\Users\\wookie184\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\asyncio\\runners.py\", line 190, in run\r\n return runner.run(main)\r\n ^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\wookie184\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\asyncio\\runners.py\", line 118, in run\r\n return self._loop.run_until_complete(task)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\wookie184\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\asyncio\\base_events.py\", line 653, in run_until_complete\r\n return future.result()\r\n ^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\wookie184\\Documents\\GitHub\\bot\\hello.py\", line 8, in main\r\n async with aiohttp.ClientSession(trace_configs=None) as session:\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\wookie184\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\bot-hu2rt1Uv-py3.11\\Lib\\site-packages\\sentry_sdk\\integrations\\aiohttp.py\", line 186, in init \r\n client_trace_configs = list(kwargs.get(\"trace_configs\", ()))\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nTypeError: 'NoneType' object is not iterable\r\n```","author":{"url":"https://github.com/wookie184","@type":"Person","name":"wookie184"},"datePublished":"2023-07-06T12:36:47Z","url":"https://github.com/getsentry/sentry-python/issues/2233"}
| 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:041e5ca0-7c9b-2c5a-d254-e07000ffbae4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F5C:C8FAB:7E0625:AC9ABF:6B047B42 |
| html-safe-nonce | 272a4c505040b3bc6c45e6248bfbda7af4f5f1ad21f0006a22dd21ede5a8faac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjVDOkM4RkFCOjdFMDYyNTpBQzlBQkY6NkIwNDdCNDIiLCJ2aXNpdG9yX2lkIjoiNTc5MTU2NjYwNDg0OTMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 58214bc38e12ee74a41fdee072d2aa97c5eda987e822f435215b9c1cab16992f |
| hovercard-subject-tag | issue:1791477153 |
| 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/2233/issue_layout |
| twitter:image | https://opengraph.githubassets.com/22cc4b57ed5a83b656d020a82f016a5ba33a55858ba2d5e6520ae69531cec1a6/getsentry/sentry-python/issues/2233 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/22cc4b57ed5a83b656d020a82f016a5ba33a55858ba2d5e6520ae69531cec1a6/getsentry/sentry-python/issues/2233 |
| og:image:alt | How do you use Sentry? Self-hosted/on-premise Version 1.27.0 Steps to Reproduce With the aiohttp integration, use aiohttp.ClientSession with trace_configs explicitly passed as None import asyncio i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wookie184 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b |
| 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 | cf73f57448d52b3a7b619195e182b33d3b3454ca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width