Skip to content

TypeError: argument of type 'NoneType' is not iterable #225

Closed
@suwat-netprom

Description

@suwat-netprom

Expected Behavior

can show log not have issue

Actual Behavior

[ERROR] TypeError: argument of type 'NoneType' is not iterable Traceback (most recent call last): File "/opt/python/lib/python3.8/site-packages/datadog_lambda/wrapper.py", line 142, in __call__ self.response = self.func(event, context, **kwargs) File "/var/task/wsgi_handler.py", line 59, in handler if "_serverless-wsgi" in event:

Steps to Reproduce the Problem

  1. test call api with postman to api-gateway
  2. goto lambda -> cloudwatch

Specifications

  • aws lambda
  • python flask framework
  • python flask_restful
  • serverless-python-requirements plugin
  • serverless-wsgi plugin
  • serverless-plugin-datadog plugin
  • Datadog Lambda Layer version: datadog-python38_3.57.0
  • Python version: 3.8

Stacktrace

image

image

image

thany you

Paste here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions