Skip to content

register_agent action fails with no method found #2

@paulrinaldi

Description

@paulrinaldi

Steps to follow:
0. Create an agentspace app

  1. Create an agent with google adk and deploy to agent engine
  2. Clone this repo, use uv to install dependencies
  3. Edit the config.json to have the following known values defined:
{
    "project_id": "...",
    "location": "...", 
    "re_resource_name": "...",
    "re_resource_id": "...",
    "re_display_name": "...",
    "app_id": "...",
    "adk_deployment_id": "...",
    "icon_uri": "...",
    "api_location": "...",
    "re_location": "..."
}
  1. Run uv run python as_registry_client.py
  2. Enter the display name, description, tool descriptions, and no auth id.

Observe:
info log:

INFO:root:Create Agent Command: ['curl', '-X', 'POST', '-H', 'Authorization: Bearer ...', 'https://discoveryengine.googleapis.com/v1alpha/projects/<MY_PROJECT_ID_NOT_NUMBER>/locations/global/collections/default_collection/engines/<MY_AGENTSPACE_APP_ID>/assistants/default_assistant/agents', '-d', '{"displayName": "<NAME_I_ENTERED", "description": "<BRIEF_DESCRIPTION_I_ENTERED>", "adk_agent_definition": {"tool_settings": {"tool_description": "<BRIEF_TOOL_DESCRIPTION_I_ENTERED>"}, "provisioned_reasoning_engine": {"reasoning_engine": "projects/<MY_PROJECT_ID_NOT_NUMBER>/locations/global/reasoningEngines/<MY_AGENTSPACE_APP_ID>"}, "authorizations": []}, "icon": {"uri": "https://.....com/....png"}}']

and response

{
  "status_code": 0,
  "stdout": "{\n  \"error\": {\n    \"code\": 404,\n    \"message\": \"Method not found.\",\n    \"status\": \"NOT_FOUND\"\n  }\n}\n",
  "stderr": "  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\n100   516    0   100  100   416    856   3562 --:--:-- --:--:-- --:--:--  4448\n",
  "agent": {
    "error": {
      "code": 404,
      "message": "Method not found.",
      "status": "NOT_FOUND"
    }
  }
}

Expectations:

  • Observe successful 402 or 200

Do I need to add more to my config? Is the project_id supposed to be the project_number? Or is this failing for others as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions