Skip to content

[Bug]: Gateway update fails silently in UI, backend throws ValidationInfo error #630

@rakdutta

Description

@rakdutta

🐞 Bug Summary

When attempting to update a Gateway via the UI, the update silently fails without showing any error message on the frontend. However, the backend logs show the following error:

🧩 Affected Component

Select the area of the project impacted:

  • mcpgateway - API
  • mcpgateway - UI (admin panel)

🔁 Steps to Reproduce

  1. Go to the Gateway Edit screen in the UI.
  2. Make any change to the Gateway details.
  3. Click on "Save" or "Update".
  4. Observe that there is no error message or feedback in the UI.
  5. Check backend logs for the error.

🤔 Expected Behavior

The Gateway should update successfully or display a meaningful validation error in the UI.

Actual Behavior:

  1. No update is performed.
  2. No error message is shown in the UI.
  3. Backend logs show a ValidationInfo attribute error.

📓 Logs / Error Output

ERROR [mcpgateway] Error editing gateway: 'pydantic_core._pydantic_core.ValidationInfo' object has no attribute 'get'

🧠 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

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions