Title: _get_blocked_template() missing 1 required positional argument · Issue #688 · DataDog/datadog-lambda-python · GitHub
Open Graph Title: _get_blocked_template() missing 1 required positional argument · Issue #688 · DataDog/datadog-lambda-python
X Title: _get_blocked_template() missing 1 required positional argument · Issue #688 · DataDog/datadog-lambda-python
Description: Customers encountering the following error def get_asm_blocked_response( event_source: _EventSource, ) -> Optional[Dict[str, Any]]: """Get the blocked response for the given event source.""" if event_source.event_type not in _http_event_...
Open Graph Description: Customers encountering the following error def get_asm_blocked_response( event_source: _EventSource, ) -> Optional[Dict[str, Any]]: """Get the blocked response for the given event source.""" if eve...
X Description: Customers encountering the following error def get_asm_blocked_response( event_source: _EventSource, ) -> Optional[Dict[str, Any]]: """Get the blocked response for the given event...
Opengraph URL: https://github.com/DataDog/datadog-lambda-python/issues/688
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"_get_blocked_template() missing 1 required positional argument","articleBody":"Customers encountering the following error\n\n```\ndef get_asm_blocked_response(\n event_source: _EventSource,\n ) -\u003e Optional[Dict[str, Any]]:\n \"\"\"Get the blocked response for the given event source.\"\"\"\n if event_source.event_type not in _http_event_types:\n return None\n blocked = get_blocked()\n if not blocked:\n return None\n desired_type = blocked.get(\"type\", \"auto\")\n if desired_type == \"none\":\n content_type = \"text/plain; charset=utf-8\"\n content = \"\"\n else:\n content_type = blocked.get(\"content-type\", \"application/json\")\n content = http_utils._get_blocked_template(content_type)\nE TypeError: _get_blocked_template() missing 1 required positional argument: 'security_response_id'\ndatadog_lambda/asm.py:226: TypeError\n```\n\nor similar errors related to the `_get_blocked_template` function signature should check the version of ddtrace they are using. Customers encountering this error are likely using lambda with containers and/or have overridden the version of ddtrace packaged with the Datadog Python Lambda Layer. If you are using ddtrace v3.19.0 or above and have ASM enabled, please downgrade to a ddtrace version between v3.16.2 and v3.18.1.\nCustomers not using ddtrace v3.19.0 or above should not be affected by this issue.","author":{"url":"https://github.com/rithikanarayan","@type":"Person","name":"rithikanarayan"},"datePublished":"2025-11-26T19:35:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/688/datadog-lambda-python/issues/688"}
| 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:91bc5101-a40c-ca87-0225-719f8bab6796 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E46:183B61:97CC08:C68A54:6991ED5F |
| html-safe-nonce | 1e653100602d5da01e20507b7824fce930e2d898da85a24e6b64575dbccf4915 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTQ2OjE4M0I2MTo5N0NDMDg6QzY4QTU0OjY5OTFFRDVGIiwidmlzaXRvcl9pZCI6IjgzNzQ4ODY5MTY5OTUyODAyMjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e171fce6f24d1cfc3805bb1983d861522cca85cfd90804fb82bfde0ff7b38863 |
| hovercard-subject-tag | issue:3668817635 |
| 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/DataDog/datadog-lambda-python/688/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ebe8fa156856439deb5441939fbdf6834ee43d289d8e52efef989e50a7b128cb/DataDog/datadog-lambda-python/issues/688 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ebe8fa156856439deb5441939fbdf6834ee43d289d8e52efef989e50a7b128cb/DataDog/datadog-lambda-python/issues/688 |
| og:image:alt | Customers encountering the following error def get_asm_blocked_response( event_source: _EventSource, ) -> Optional[Dict[str, Any]]: """Get the blocked response for the given event source.""" if eve... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rithikanarayan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/DataDog/datadog-lambda-python git https://github.com/DataDog/datadog-lambda-python.git |
| octolytics-dimension-user_id | 365230 |
| octolytics-dimension-user_login | DataDog |
| octolytics-dimension-repository_id | 183265904 |
| octolytics-dimension-repository_nwo | DataDog/datadog-lambda-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 183265904 |
| octolytics-dimension-repository_network_root_nwo | DataDog/datadog-lambda-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 | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width