Skip to content

mysql-connector 9.2.0 - TypeError: 'MySQLConnection' object is not iterable #453

@iongion

Description

@iongion

Currents deps

mysql-connector-python==9.2.0
aws-lambda-powertools==3.6.0
aws_xray_sdk==2.14.0

Then in the lambda I notice this in the logs

Traceback (most recent call last):
  File "/var/task/aws_xray_sdk/core/utils/conversion.py", line 22, in metadata_to_dict
    for item in obj:
                ^^^
TypeError: 'MySQLConnection' object is not iterable

My integration of xray is just

from aws_xray_sdk.core import xray_recorder
xray_recorder.configure(service=os.getenv("IMPORTER_POWERTOOLS_SERVICE_NAME"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions