Skip to content

Composio Gmail Coment Send Mail method Error #13476

@andhwynm

Description

@andhwynm

Bug Description

An error occurred when using the Send Mail method of Composio's Gmail component: KeyError Details: type

Image Image

Reproduction

Tested the send mail function, the email was sent successfully but the returned value is incorrect.
File "/app/.venv/lib/python3.12/site-packages/composio/core/models/_files.py", line 325, in substitute_file_downloads
self._substitute_file_downloads_recursively(
File "/app/.venv/lib/python3.12/site-packages/composio/core/models/_files.py", line 308, in _substitute_file_downloads_recursively
if isinstance(request[_param], dict) and params[_param]["type"] == "object":
~~~~~~~~~~~~~~^^^^^^^^
KeyError: 'type'

Image

Expected behavior

The issue has been resolved after modifying Composio's _files.py by adding conditional checks.

Image Image

Who can help?

No response

Operating System

Windows11

Langflow Version

v1.9.1

Python Version

3.12

Screenshot

No response

Flow File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbundles

    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