[Solved ✅] Error Jira Integration

Hi team, I am trying to use the Jira integration, which used to work, but I now get the following error: "URL has an invalid label." When I set up the new integration, it works from the Composio UI. However, as soon as I trigger it from my Python app, it stops working and also fails from the UI with the same error. Additionally, every time I trigger a call from my Python app, a new connected account is created in the integration. How can I prevent this from happening? This is my code: def get_composio_connection(actions, integration_id): llm = LLM().get_model() prompt = hub.pull("hwchase17/openai-functions-agent") toolset = ComposioToolSet(api_key=sk["composioapikey"], entity_id=sk["composioentity"]) tools = toolset.get_tools(actions=actions) integration = toolset.get_integration(id=sk[integration_id]) memory = ConversationBufferMemory(memory_key="chat_history")
connection_args = { "integration_id": integration.id, "entity_id": sk["composioentity"] }
if integration == "composijiraintegration": connection_args["connected_account_params"] = { "Base64_Encode": sk["composiojiraencoding"], "your-domain": "valentingant" }, system_message = get_system_messages()["jira_agent"] prompt = prompt+system_message
toolset.initiate_connection( **connection_args ) agent = create_openai_functions_agent(llm, tools, prompt) agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=False, checkpointer=memory)
return agent_executor and these are some logs: [2024-11-12 13:12:05,625][INFO] Executing JIRA_GET_PROJECT with params={'projectIdOrKey': 'AT'} and metadata={} connected_account_id=None [2024-11-12 13:12:07,800][INFO] Got response={'successfull': False, 'data': {}, 'error': 'URL has an invalid label.'} from action=JIRA_GET_PROJECT with params={'projectIdOrKey': 'AT'} Thanks a lot and best regards!
3 Replies
adverse-sapphire
adverse-sapphireOP2w ago
UPDATE: Jira issue is solved. But I still have the multiple connected accounts. Any idea why?
probable-pink
probable-pink2w ago
Maybe you have tried to connect your accounts multiple times?!
adverse-sapphire
adverse-sapphireOP2w ago
Hi, that was indeed the problem. Solved it! Thanks!