Skip to content

Request error: 403 Client Error: Forbidden for url for JIRA ADK connector #1140

Description

@ibbysho

Hello ,

I am building a simple agent that uses Jira Cloud connector lets you manage Jira Cloud issues . I keep running into the error below.

ValueError: Request error: 403 Client Error: Forbidden for url: https://connectors.googleapis.com/v1/projects/adk-crashcourse/locations/us-central1/connections/jira-connect?view=BASIC

I have tested my Jira Connector (Integration Connector) and it works in Google Cloud to create new tickets in Jira. I have created the ExecuteConnection (Application Integration) as requested. My code is using Vertex AI .

tool.py file below
from google.adk.tools.application_integration_tool.application_integration_toolset import ApplicationIntegrationToolset

connector_tool = ApplicationIntegrationToolset(
project="adk-crashcourse", # TODO: replace with GCP project of the connection adk-crashcourse-461018
location="us-central1", #TODO: replace with location of the connection
connection="jira-connect", #TODO: replace with connection name jira-iowa jira-central
entity_operations={"Issues": ["GET", "LIST"]},#empty list for actions means all operations on the entity are supported.
#actions=["action1"], #TODO: replace with actions
#service_account_credentials='{...}', # optional
#tool_name="JIRATool",
tool_instructions="Use this tool when an issue in JIRA has to be searched"
)

agent.py file below
from google.adk.agents import Agent
from .tools import connector_tool

#Create the root agent
root_agent = Agent(
name="JIRASearchAgent",
model="gemini-2.0-flash",
description="This agent helps search issues in JIRA ",
instruction="""
Use this agent to call an integration to search for issues in JIRA
""",
tools=connector_tool.get_tools(),
)

The picture of the error I am getting

Image

It is a 403 error and I was checking the documentation could this be a permission issue . I have given my service account for the jira connector all the roles required and I can think of but I keep getting the same error .

Image

Please advice if possible . I feel it is a small fix I am missing .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions