https://linen.dev logo
gmail fetch fails w/ code 500
# 🖥│support-forum
s
Copy code
composio_client.InternalServerError: Error code: 500 - {'error': {'message': 'Client error with internal service (POST): Bad Gateway', 'code': 1601, 'status': 500, 'request_id': '4b7b78d4b07b419daa0b9f2d67662c29', 'suggested_fix': ''}}
is there an outage from composio's side?
a
Hey, can you please share the reproducible steps? I was troubleshooting the issue and looks like the API call is being made to
/api/toolkits_/gmail
instead of
/api/v3/toolkits/gmail
s
Copy code
py
def execute_gmail_tool(
    tool_name: str,
    composio_user_id: str,
    *,
    arguments: Optional[Dict[str, Any]] = None,
) -> Dict[str, Any]:
    prepared_arguments: Dict[str, Any] = {}
    if isinstance(arguments, dict):
        for key, value in arguments.items():
            if value is not None:
                prepared_arguments[key] = value

    prepared_arguments.setdefault("user_id", "me")

    try:
        client = _get_composio_client()
        result = client.client.tools.execute(
            tool_name,
            user_id=composio_user_id,
            arguments=prepared_arguments,
        )
        return _normalize_tool_response(result)
    except Exception as exc:
        logger.exception(
            "gmail tool execution failed",
            extra={"tool": tool_name, "user_id": composio_user_id},
        )
        raise RuntimeError(f"{tool_name} invocation failed: {exc}") from exc
in server/services/gmail
a
available for a quick call?
s
sure
a
To join the video meeting, click this link: https://meet.google.com/ssn-ujyr-row
s
actually just give me a second
lemme try something
a
Sure, shoot me a meet link if you need help
s
sure thanks
hey @abhishekpatil4 i couldn't fix it, would you mind helping https://meet.google.com/uau-ioph-hat
c
Sure, joining in 2
s
awesome thanks
log_dISBSRnwrQfx
log_ddZl84saHnn-