Skip to content

Job fails with '405 Not Allowed' during web search task #161

Description

@wmaguirre

NPM Version

1.2.71

Platform

Linux

Description

Description

When asking the agent to perform a task that requires web access (like searching for news), the job is created successfully in the UI, but the underlying GitHub Action fails with a "405 Not Allowed" error.

This suggests that the request made by the runner to an external web service is using an incorrect HTTP method (e.g., using POST instead of GET).

Steps to Reproduce

  1. Start the agent using the stable v1.2.72 image.
  2. In the chat interface, ask the agent a question that requires web search, for example: "busca las noticias más destacadas del día y resúmelas para mi" (search for the day's top news and summarize them for me).
  3. The agent correctly identifies this as a job and creates it.
  4. Go to the GitHub repository's "Actions" tab.
  5. Observe that the job workflow (e.g., notify-failure) fails.
  6. Inspect the logs of the failed job.

Expected Behavior

The job should complete successfully, fetch the web content, and the agent should eventually report back with the requested summary.

Actual Behavior

The job fails. The log for the workflow run shows a "405 Not Allowed" error, returned by an nginx server.

Relevant Logs

PASTA AQUÍ LOS LOGS COMPLETOS QUE ME MOSTRASTE ANTES

(The key part of the log is the HTML response:)

Steps to Reproduce

notify-failure
succeeded 4 minutes ago in 13s
Search logs
3s
Current runner version: '2.332.0'
Runner name: 'github-runner-uJpA3VBrU5eJ3'
Runner group name: 'Default'
Machine name: '049d7f12a3f3'
GITHUB_TOKEN Permissions
Secret source: Actions
Prepare workflow directory
Prepare all required actions
Getting action download info
Download action repository 'actions/checkout@v4' (SHA:34e114876b0b11c390a56381ad16ebd13914f8d5)
Complete job name: notify-failure
2s
Run actions/checkout@v4
Syncing repository: wmaguirre/mi-agente
Getting Git version info
Copying '/root/.gitconfig' to '/_work/github-runner-uJpA3VBrU5eJ3/_temp/f443f271-74c9-4495-8fe1-bebb86e47687/.gitconfig'
Temporarily overriding HOME='/_work/github-runner-uJpA3VBrU5eJ3/_temp/f443f271-74c9-4495-8fe1-bebb86e47687' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
/usr/bin/git config --global --add safe.directory /_work/github-runner-uJpA3VBrU5eJ3/mi-agente/mi-agente
/usr/bin/git config --local --get remote.origin.url
https://github.com/wmaguirre/mi-agente
Removing previously created refs, to avoid conflicts
/usr/bin/git submodule status
Cleaning the repository
Disabling automatic garbage collection
Setting up auth
Fetching the repository
Determining the checkout info
/usr/bin/git sparse-checkout disable
/usr/bin/git config --local --unset-all extensions.worktreeConfig
Checking out the ref
/usr/bin/git log -1 --format=%H
2833b35529fcf05571c4dc558c7e0493794d9714
1s
Run BRANCH="job/0aae4775-0b1a-424b-b845-153d34c3bdbb"

<title>405 Not Allowed</title>

405 Not Allowed


nginx/1.18.0 1s Post job cleanup. /usr/bin/git version git version 2.50.1 Copying '/root/.gitconfig' to '/_work/github-runner-uJpA3VBrU5eJ3/_temp/6b0e6eb3-6ef0-49e4-9d8a-199741763aae/.gitconfig' Temporarily overriding HOME='/_work/github-runner-uJpA3VBrU5eJ3/_temp/6b0e6eb3-6ef0-49e4-9d8a-199741763aae' before making global git config changes Adding repository directory to the temporary git global config as a safe directory /usr/bin/git config --global --add safe.directory /_work/github-runner-uJpA3VBrU5eJ3/mi-agente/mi-agente /usr/bin/git config --local --name-only --get-regexp core\.sshCommand /usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :" /usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader http.https://github.com/.extraheader /usr/bin/git config --local --unset-all http.https://github.com/.extraheader /usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :" /usr/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir: /usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url 0s Cleaning up orphan processes

Thank you for your amazing work on this project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions