Skip to content

[Bug]: REST Tool giving error #587

@sunvk

Description

@sunvk

🐞 Bug Summary

I have created a simple HTTP REST Tool with a public API for the below curl. Curl is working from the same machine. But the tool is not giving response.

Curl:

curl --location 'https://newsapi.org/v2/top-headlines?country=us&apiKey=8697c4b48d2940b895b4b51064ee67a6'

Tool:

Image

Error:

Image

WARNI [mcpgateway.utils.retry_manager] Retrying due to error:
127.0.0.1:41914 - "GET /health HTTP/1.1" 200
WARNI [mcpgateway.utils.retry_manager] Retrying due to error:
ERROR [mcpgateway] RPC error: Tool invocation failed:


🧩 Affected Component

Select the area of the project impacted:

  • mcpgateway - API
  • mcpgateway - UI (admin panel)
  • mcpgateway.wrapper - stdio wrapper
  • Federation or Transports
  • CLI, Makefiles, or shell scripts
  • Container setup (Docker/Podman/Compose)
  • Other (explain below)

🔁 Steps to Reproduce

  1. ...
  2. ...
  3. ...

🤔 Expected Behavior

What should have happened instead?


📓 Logs / Error Output

Paste any relevant stack traces or logs here.
⚠️ Do not paste secrets, credentials, or tokens.


🧠 Environment Info

You can retrieve most of this from the /version endpoint.

Key Value
Version or commit e.g. v0.9.0 or main@a1b2c3d
Runtime e.g. Python 3.11, Gunicorn
Platform / OS e.g. Ubuntu 22.04, macOS
Container e.g. Docker, Podman, none

🧩 Additional Context (optional)

Add any configuration details, flags, or related issues.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageIssues / Features awaiting triage

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions