https://linen.dev logo
Issue with Creating a Chat in Microsoft Teams Tool...
# 🖥│support-forum
a
I am running into an erro with the tool for MICROSOFT_TEAMS_TEAMS_CREATE_CHAT alwasy failing with the error Error: TypeError('Object of type AADUserConversationMemberRequest is not JSON serializable') Please fix your mistakes. I have tried a multitude of potential fixes, but with now success. I have manually updated the params in a schema modifier then trying to convert it back to the right keys in a before execute funciton, but that did not work. I believe there must be something wrong i nthe MCP server code where the AADUserConversationMemberRequest does not correctly have a serializer functoin created for it
c
Hey Alex. We were unable to reproduce this issue, even tried it via MCP. Could you please share the tool call LogID and what MCP client you're using? Any reproducible steps // code snippets would be helpful in troubleshooting. Thanks
a
This is using the Python SDK
This is the log id of one of the failed calls log_7sNOKLXuO2oi
That was after I did a bunch of testing with the schema modifiers and before execute just so the request would actually hit composio. Without those chagnes it doesnt even make a request to composio and fails before the request with the AADUserConversationMemberRequest is not json serializable
c
Got it, can you please share the reproducible code snippet?
a
composio = Composio( api_key=COMPOSIO_API_KEY, provider=LangchainProvider(), ) MICROSOFT_TEAMS_TOOLS = [ "MICROSOFT_TEAMS_ADD_MEMBER_TO_TEAM", "MICROSOFT_TEAMS_ARCHIVE_TEAM", "MICROSOFT_TEAMS_CHATS_GET_ALL_CHATS", "MICROSOFT_TEAMS_CHATS_GET_ALL_MESSAGES", "MICROSOFT_TEAMS_CREATE_MEETING", "MICROSOFT_TEAMS_CREATE_TEAM", "MICROSOFT_TEAMS_DELETE_TEAM", "MICROSOFT_TEAMS_GET_CHANNEL", "MICROSOFT_TEAMS_GET_CHAT_MESSAGE", "MICROSOFT_TEAMS_GET_TEAM", "MICROSOFT_TEAMS_LIST_MESSAGE_REPLIES", "MICROSOFT_TEAMS_LIST_TEAM_MEMBERS", "MICROSOFT_TEAMS_LIST_TEAMS_TEMPLATES", "MICROSOFT_TEAMS_LIST_USERS", "MICROSOFT_TEAMS_TEAMS_CREATE_CHANNEL", "MICROSOFT_TEAMS_TEAMS_CREATE_CHAT", "MICROSOFT_TEAMS_TEAMS_GET_MESSAGE", "MICROSOFT_TEAMS_TEAMS_LIST", "MICROSOFT_TEAMS_TEAMS_LIST_CHANNELS", "MICROSOFT_TEAMS_TEAMS_LIST_CHAT_MESSAGES", "MICROSOFT_TEAMS_TEAMS_LIST_PEOPLE", "MICROSOFT_TEAMS_TEAMS_POST_CHANNEL_MESSAGE", "MICROSOFT_TEAMS_TEAMS_POST_CHAT_MESSAGE", "MICROSOFT_TEAMS_TEAMS_POST_MESSAGE_REPLY", "MICROSOFT_TEAMS_UNARCHIVE_TEAM", "MICROSOFT_TEAMS_UPDATE_CHANNEL_MESSAGE", "MICROSOFT_TEAMS_UPDATE_CHAT_MESSAGE", "MICROSOFT_TEAMS_UPDATE_TEAM", ] composio.tools.get(tools=MICROSOFT_TEAMS_TOOLS)
then we use it with the LangChain provider
log_7eAcuUBuO9UJ
Can you look at this log id also, this may be more insightful since I think i got theb payload correct but its now failing on the api request
a
Thanks for the details Alex, I've escalated this internally.
l
Do you need developer?