search_events always fails on self-hosted Sentry 25.7.0: /events/validate/ returns 404
Maintainer thường phản hồi trong vòng 1 ngày
@chykB đang làm issue này rồi.
Từ ngày 6/10/2026.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 64/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
Hướng nghiên cứu
Start at the search_events entry point and trace how GET /organizations/{org}/events/validate/ errors are handled before the events query. Reproduce the self-hosted Sentry 25.7.0 case, then verify that a 404 no longer prevents the events request and that successful search_events results are returned.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Since 0.37.0, search_events calls GET /api/0/organizations/{org}/events/validate/ before every events query (#1105, #1113). Our self-hosted Sentry 25.7.0 answers 404 on that endpoint. The tool treats the 404 as a fatal error, so search_events fails on every call, even though the events query itself would succeed.
Environment
@sentry/mcp-server0.42.0, stdio- Self-hosted Sentry 25.7.0 (build
0ce69559) - Flags:
--host=<self-hosted host> --organization-slug=<org> --project-slug=<project> --skills=inspect,triage - User auth token with
event:read,project:read,org:read,alerts:read
Steps to reproduce
- Start the server with the flags above against a self-hosted Sentry 25.7.0.
- Call
search_eventswithdataset: "errors",query: "level:error",statsPeriod: "24h".
Expected
The tool returns the matching error events.
Actual
API error (404): API request failed: Not Found
What we checked
With the same token, directly against the API:
| Request | Status |
|---|---|
GET /organizations/{org}/events/validate/?project=<id>&dataset=errors&field=title |
404 |
GET /organizations/{org}/events/?project=<id>&dataset=errors&field=title&field=count() |
200 |
GET /organizations/{org}/events/?...&dataset=discover |
200 |
GET /organizations/{org}/events/?...&dataset=spans |
200 |
GET /organizations/{org}/events/?...&dataset=ourlogs |
200 |
search_issues and get_sentry_resource work on 0.42.0. On 0.36.0, the last version without the validate call, search_events returns results against the same instance with the same flags. We pinned 0.36.0 as a workaround.
Suggestion
When /events/validate/ answers 404, skip validation and run the events query, maybe with a warning in the tool output. A 404 there most likely means that the server does not have the endpoint, and not that the query is invalid.
If the maintainers prefer not to fall back: which Sentry version is the minimum for search_events? A version check or a note in the self-hosted docs would help.
Related
- #1253 handles a generic 400 from
validateEvents. This report is about a 404. - #937 reports a 404 from
search_eventson the hosted server. That may be a different cause.
- Ngôn ngữ chính
- TypeScript
- Star
- 938
- Fork
- 166
- Merge trung bình
- 1 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 156
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/toolkit
-
bug MCP
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsentry/toolkit#1600 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
getsentry/toolkit#1471 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
getsentry/toolkit#1611 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement MCP
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 55/100
getsentry/toolkit#1601 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Use typed detector schemas from @sentry/api for metric monitorsCó thể đã có người làm @MathurAditya724 đã nhận 1 ngày trước. Đang mở
getsentry/toolkit#1595 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getsentry/toolkit
Issue tương tự
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
openclaw/openclaw#182077 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
aikido high security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
dequelabs/axe-linter-action#161 ·
-
[Feature Request] Update the DimCode agent icon to the 45:32 brand markCó thể đã có người làm @eric8810 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Feature]: 建议导入源后,自动切换到新导入的源Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
lyswhut/lx-music-desktop#3026 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
abhigyanpatwari/GitNexus#3704 ·
Maintainer thường phản hồi trong vòng 1 ngày