driptoohard2044
10/24/2025, 12:29 PM{
"error": {
"message": "Connected account not found",
"code": 606,
"status": 404,
"request_id": "88ab9f7e-dc3f-4bec-8cb7-7acd6f0b0736",
"suggested_fix": ""
}
}
User id - 68e2329be4196ae1450408ae
When i check my account is connected (attached image)
code -
async def create_trigger(
self,
user_id: str,
trigger_slug: str = None,
trigger_config: Dict[str, Any] = None,
) -> Optional[Dict[str, Any]]:
"""
Create an email trigger for a user.
Returns:
Dict containing trigger information or None if failed
"""
try:
# Get email trigger type configuration
trigger_type = self.composio.triggers.get_type(trigger_slug)
logger.info(f"Email trigger configuration: {trigger_type.config}")
# Create the email trigger
trigger = self.composio.triggers.create(
user_id=user_id,
slug=trigger_slug,
trigger_config=trigger_config or {},
)
return {
"trigger_id": trigger.trigger_id,
"user_id": user_id,
"trigger_slug": trigger_slug,
"status": "active",
}
except Exception as e:
logger.error(f"Error creating email trigger for user {user_id}: {e}")
return None
https://cdn.discordapp.com/attachments/1431258193987764425/1431258194407325716/Screenshot_2025-10-24_at_5.56.46_PM.png?ex=68fcc291&is=68fb7111&hm=7f628d6ba2bfb415f08342bdabba2a56e5db9a31e1289601a70ba21261b3e07e&driptoohard2044
10/24/2025, 12:30 PMdriptoohard2044
10/24/2025, 12:31 PMdriptoohard2044
10/24/2025, 12:32 PMabhishekpatil4
10/24/2025, 12:46 PMca_W9WR2CLL-BhL) is in INITIATED state which is why the trigger creation failed. I'd also recommend upgrading your composio package to [latest](https://pypi.org/project/composio/) version.